#include <gmlib/sm2/internal/sm2p256v1.h>
#include <stdexcept>
#include <cstring>

using namespace sm2::internal;

void test_sm2_fp_add()
{
    sm2_fp_t    augend, addend, sum;
    std::uint8_t sum_data[32];

    static std::uint8_t augend0[32] = {0x04,0xeb,0x29,0x73,0xf6,0xd5,0xdd,0x9a,0xdb,0x41,0x32,0x4c,0x48,0x23,0x56,0xe2,0x10,0xae,0xa9,0x00,0x76,0x71,0x4b,0xec,0x5e,0x41,0xfa,0x1b,0xaf,0xd1,0xd5,0xcf};
    static std::uint8_t addend0[32] = {0x0f,0x10,0xa6,0x76,0x53,0x4e,0x2d,0xec,0x1c,0x5c,0xb9,0x92,0x6f,0x65,0x0f,0xff,0x89,0xdd,0xeb,0xb2,0xe0,0xf3,0xe0,0x9b,0x90,0x25,0xf8,0x08,0x79,0x32,0x43,0x7d};
    static std::uint8_t sum0[32]    = {0x13,0xfb,0xcf,0xea,0x4a,0x24,0x0b,0x86,0xf7,0x9d,0xeb,0xde,0xb7,0x88,0x66,0xe1,0x9a,0x8c,0x94,0xb3,0x57,0x65,0x2c,0x87,0xee,0x67,0xf2,0x24,0x29,0x04,0x19,0x4c};
    sm2_fp_from_bytes(augend, augend0);
    sm2_fp_from_bytes(addend, addend0);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum0, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend1[32] = {0x96,0x73,0x5b,0xcd,0xa1,0xb0,0x72,0xf0,0x02,0x56,0x8b,0xbc,0xd2,0x67,0x3b,0x11,0x9a,0x17,0x3e,0xdd,0xdc,0xab,0x39,0x9c,0x3e,0x92,0x1f,0xf1,0x32,0xa6,0x7e,0x6f};
    static std::uint8_t addend1[32] = {0xd0,0xd0,0x4c,0x0b,0xce,0x17,0xf9,0x35,0xd1,0x5a,0x6a,0x00,0xa9,0x3c,0x4a,0x22,0xc3,0x20,0x2b,0x5f,0xcb,0x96,0x38,0x25,0x57,0xa7,0xf0,0xec,0xe9,0x5b,0xed,0x99};
    static std::uint8_t sum1[32]    = {0x67,0x43,0xa7,0xda,0x6f,0xc8,0x6c,0x25,0xd3,0xb0,0xf5,0xbd,0x7b,0xa3,0x85,0x34,0x5d,0x37,0x6a,0x3e,0xa8,0x41,0x71,0xc0,0x96,0x3a,0x10,0xde,0x1c,0x02,0x6c,0x09};
    sm2_fp_from_bytes(augend, augend1);
    sm2_fp_from_bytes(addend, addend1);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum1, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend2[32] = {0x0c,0x63,0x5d,0xed,0x51,0x56,0xaa,0xc2,0x6e,0xed,0xb7,0xbf,0x85,0x6b,0x62,0x0b,0xc1,0x98,0xe3,0xf7,0x2a,0xb3,0xb3,0x24,0xa1,0xb2,0x29,0x81,0x1c,0x13,0x61,0x27};
    static std::uint8_t addend2[32] = {0x9c,0x9f,0xcf,0xdf,0x80,0x97,0xd4,0xdf,0x7e,0x0c,0x06,0x71,0x3c,0xea,0x1c,0x67,0x70,0x2a,0xa3,0xb6,0xfd,0xf7,0x28,0x6e,0xaf,0xa7,0x93,0xd0,0xa4,0x1c,0xe8,0xcf};
    static std::uint8_t sum2[32]    = {0xa9,0x03,0x2d,0xcc,0xd1,0xee,0x7f,0xa1,0xec,0xf9,0xbe,0x30,0xc2,0x55,0x7e,0x73,0x31,0xc3,0x87,0xae,0x28,0xaa,0xdb,0x93,0x51,0x59,0xbd,0x51,0xc0,0x30,0x49,0xf6};
    sm2_fp_from_bytes(augend, augend2);
    sm2_fp_from_bytes(addend, addend2);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum2, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend3[32] = {0xa9,0xc4,0x24,0x93,0x3f,0x59,0x96,0x28,0xfa,0xd2,0x94,0x1d,0xe2,0x17,0x49,0x94,0xf0,0x04,0x93,0x42,0x4a,0xb5,0x25,0x66,0x25,0xad,0x9d,0xab,0x4b,0x6d,0x4f,0xcd};
    static std::uint8_t addend3[32] = {0xd9,0x22,0x95,0xb8,0xfe,0xda,0x85,0x09,0x91,0xb7,0x8e,0xfd,0x48,0x59,0x27,0x6a,0x5d,0x9b,0x9b,0xba,0x98,0xa1,0x7a,0x71,0xce,0x75,0xf9,0x86,0x80,0x4e,0xf8,0x24};
    static std::uint8_t sum3[32]    = {0x82,0xe6,0xba,0x4d,0x3e,0x34,0x1b,0x32,0x8c,0x8a,0x23,0x1b,0x2a,0x70,0x70,0xff,0x4d,0xa0,0x2e,0xfd,0xe3,0x56,0x9f,0xd6,0xf4,0x23,0x97,0x31,0xcb,0xbc,0x47,0xf2};
    sm2_fp_from_bytes(augend, augend3);
    sm2_fp_from_bytes(addend, addend3);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum3, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend4[32] = {0x64,0xc7,0x30,0xca,0xba,0x56,0xb4,0x53,0x4c,0x3a,0x83,0x6b,0x4f,0xb5,0xfd,0xca,0x09,0x5c,0x0d,0xdc,0x1b,0x9f,0xf2,0x96,0xed,0xb8,0x22,0x26,0xeb,0x53,0x88,0x8f};
    static std::uint8_t addend4[32] = {0xdb,0x22,0x81,0x54,0xd4,0x2a,0x19,0x35,0xc5,0x5b,0x4d,0x0d,0xe4,0xa4,0x8a,0x03,0xa1,0xe2,0x7e,0x25,0x98,0x15,0xd7,0xdc,0x36,0x0e,0x5b,0x51,0x9b,0xc1,0x9f,0x2d};
    static std::uint8_t sum4[32]    = {0x3f,0xe9,0xb2,0x20,0x8e,0x80,0xcd,0x89,0x11,0x95,0xd0,0x79,0x34,0x5a,0x87,0xcd,0xab,0x3e,0x8c,0x02,0xb3,0xb5,0xca,0x72,0x23,0xc6,0x7d,0x78,0x87,0x15,0x27,0xbd};
    sm2_fp_from_bytes(augend, augend4);
    sm2_fp_from_bytes(addend, addend4);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum4, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend5[32] = {0xb2,0x4e,0x94,0x32,0xdb,0x2f,0xe5,0xef,0x81,0x3e,0x7b,0xd8,0xd6,0xce,0x84,0x19,0x72,0xbc,0x68,0x2e,0xe3,0x5a,0xb6,0x12,0x7d,0x02,0x15,0x28,0x45,0xe9,0x1e,0x9c};
    static std::uint8_t addend5[32] = {0xee,0xe1,0xdd,0x79,0xd3,0x26,0xfc,0xd0,0x3b,0xff,0x5f,0xab,0xfd,0x45,0x4e,0x02,0xd5,0x39,0x69,0xb0,0x8b,0x09,0x2e,0x23,0xd5,0xdc,0x4a,0x83,0xe6,0xe8,0x77,0x57};
    static std::uint8_t sum5[32]    = {0xa1,0x30,0x71,0xad,0xae,0x56,0xe2,0xbf,0xbd,0x3d,0xdb,0x84,0xd4,0x13,0xd2,0x1c,0x47,0xf5,0xd1,0xe0,0x6e,0x63,0xe4,0x35,0x52,0xde,0x5f,0xac,0x2c,0xd1,0x95,0xf4};
    sm2_fp_from_bytes(augend, augend5);
    sm2_fp_from_bytes(addend, addend5);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum5, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend6[32] = {0xa2,0xa4,0x19,0xdd,0xe3,0xe1,0x28,0x8f,0xc8,0xf5,0x7f,0x5b,0x4a,0x81,0xd6,0x17,0xf9,0x9e,0xfb,0xa3,0x5b,0x17,0xb2,0x30,0x33,0x67,0x4c,0xb4,0x6f,0xbf,0x6f,0x3f};
    static std::uint8_t addend6[32] = {0x38,0xf8,0xc8,0x56,0x43,0xcb,0xa4,0x8a,0x3c,0x33,0x3f,0x8f,0xa8,0x85,0x46,0x20,0xcd,0xe4,0xcd,0x2a,0x60,0x6d,0xbc,0x8c,0xee,0xea,0xb8,0x0f,0x84,0xde,0x3c,0x7c};
    static std::uint8_t sum6[32]    = {0xdb,0x9c,0xe2,0x34,0x27,0xac,0xcd,0x1a,0x05,0x28,0xbe,0xea,0xf3,0x07,0x1c,0x38,0xc7,0x83,0xc8,0xcd,0xbb,0x85,0x6e,0xbd,0x22,0x52,0x04,0xc3,0xf4,0x9d,0xab,0xbb};
    sm2_fp_from_bytes(augend, augend6);
    sm2_fp_from_bytes(addend, addend6);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum6, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend7[32] = {0x55,0x7d,0xb6,0x7c,0xa1,0xb6,0xdb,0xc4,0xc0,0xbb,0xd4,0x6b,0x38,0x21,0x11,0xd0,0xfb,0xcc,0xb2,0x57,0x63,0xa8,0x2d,0xd0,0xbb,0xab,0xc7,0xe2,0x2f,0x40,0x96,0x06};
    static std::uint8_t addend7[32] = {0xc1,0x27,0x5b,0x7f,0x5b,0x0c,0xfe,0x32,0x02,0x40,0xd4,0x3c,0x9d,0x05,0x46,0x37,0xf8,0x89,0x1b,0x2b,0x33,0x7c,0xf3,0x5f,0x39,0x2f,0xd2,0x6f,0x6d,0x3c,0xe8,0xf6};
    static std::uint8_t sum7[32]    = {0x16,0xa5,0x11,0xfc,0xfc,0xc3,0xd9,0xf6,0xc2,0xfc,0xa8,0xa7,0xd5,0x26,0x58,0x08,0xf4,0x55,0xcd,0x83,0x97,0x25,0x21,0x2e,0xf4,0xdb,0x9a,0x51,0x9c,0x7d,0x7e,0xfd};
    sm2_fp_from_bytes(augend, augend7);
    sm2_fp_from_bytes(addend, addend7);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum7, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend8[32] = {0x77,0x8f,0x49,0xe3,0x52,0x15,0x67,0xc7,0xb3,0x83,0xf3,0x64,0xea,0x98,0xeb,0xf2,0xba,0xf4,0xc2,0x4b,0x80,0x0b,0x50,0x1a,0x69,0x98,0xea,0x21,0xb1,0xac,0xca,0xe4};
    static std::uint8_t addend8[32] = {0xad,0xe4,0xd1,0x38,0xd7,0xb3,0xd1,0xb6,0x87,0x8c,0x44,0xd5,0x60,0xac,0x32,0x4e,0x31,0x00,0x1c,0x90,0x8e,0x13,0x1a,0xcf,0xf2,0x0b,0xb8,0xea,0x37,0x9b,0x73,0x19};
    static std::uint8_t sum8[32]    = {0x25,0x74,0x1b,0x1d,0x29,0xc9,0x39,0x7e,0x3b,0x10,0x38,0x3a,0x4b,0x45,0x1e,0x40,0xeb,0xf4,0xde,0xdd,0x0e,0x1e,0x6a,0xe9,0x5b,0xa4,0xa3,0x0b,0xe9,0x48,0x3d,0xfe};
    sm2_fp_from_bytes(augend, augend8);
    sm2_fp_from_bytes(addend, addend8);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum8, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend9[32] = {0xa3,0xbe,0xb4,0x8a,0x39,0x5a,0xe4,0x38,0x46,0xf8,0x5e,0x05,0x66,0x4e,0xae,0x88,0xb5,0x85,0xcd,0x4e,0xcf,0xfe,0xae,0x13,0x0b,0x30,0x5c,0xe4,0x40,0xc2,0x7b,0x0d};
    static std::uint8_t addend9[32] = {0xd3,0x63,0xd7,0xb2,0x4c,0xe7,0x00,0x38,0x0a,0xa8,0xb2,0x81,0xa1,0x25,0x31,0x79,0x99,0xdf,0x65,0x55,0xd5,0xea,0x72,0xe6,0x33,0x57,0x9d,0x7b,0x7a,0xeb,0x52,0x63};
    static std::uint8_t sum9[32]    = {0x77,0x22,0x8c,0x3d,0x86,0x41,0xe4,0x70,0x51,0xa1,0x10,0x87,0x07,0x73,0xe0,0x02,0x4f,0x65,0x32,0xa5,0xa5,0xe9,0x20,0xf8,0x3e,0x87,0xfa,0x5f,0xbb,0xad,0xcd,0x71};
    sm2_fp_from_bytes(augend, augend9);
    sm2_fp_from_bytes(addend, addend9);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum9, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend10[32] = {0xb6,0x22,0x55,0xd0,0xef,0xa5,0x69,0x2a,0xec,0xc7,0xff,0x39,0xbd,0x3f,0xe4,0x92,0xc6,0xaa,0x3f,0x92,0xd3,0x95,0x53,0x16,0xf4,0xb8,0x51,0xc0,0xbc,0xb7,0x64,0x18};
    static std::uint8_t addend10[32] = {0xc3,0xd4,0x29,0x6d,0x70,0x83,0xba,0xf5,0xb2,0x81,0x1a,0x5f,0x8e,0xab,0x4e,0x09,0x1b,0xb1,0xc4,0xf6,0xb7,0x85,0xaf,0x67,0x19,0x86,0x64,0x1e,0x25,0x54,0x62,0xb8};
    static std::uint8_t sum10[32]    = {0x79,0xf6,0x7f,0x3f,0x60,0x29,0x24,0x20,0x9f,0x49,0x19,0x99,0x4b,0xeb,0x32,0x9b,0xe2,0x5c,0x04,0x8a,0x8b,0x1b,0x02,0x7d,0x0e,0x3e,0xb5,0xde,0xe2,0x0b,0xc6,0xd1};
    sm2_fp_from_bytes(augend, augend10);
    sm2_fp_from_bytes(addend, addend10);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum10, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend11[32] = {0xb3,0x14,0x19,0xc5,0x71,0x1e,0xf9,0x55,0xea,0x1f,0x8f,0x50,0x92,0x7c,0xb7,0x0f,0x95,0x72,0x5c,0x99,0x6d,0x8f,0xd2,0xa2,0x03,0x15,0x8a,0xf2,0x67,0xc5,0xd4,0xb2};
    static std::uint8_t addend11[32] = {0x3c,0x91,0xf1,0xd5,0xe6,0xc1,0x3f,0xa3,0x37,0xe8,0xc7,0x69,0xfb,0xd9,0x54,0x3a,0x36,0x0f,0x4a,0xde,0xab,0x6e,0xb1,0x22,0x35,0x8b,0xac,0x9e,0xc2,0x52,0xc5,0x42};
    static std::uint8_t sum11[32]    = {0xef,0xa6,0x0b,0x9b,0x57,0xe0,0x38,0xf9,0x22,0x08,0x56,0xba,0x8e,0x56,0x0b,0x49,0xcb,0x81,0xa7,0x78,0x18,0xfe,0x83,0xc4,0x38,0xa1,0x37,0x91,0x2a,0x18,0x99,0xf4};
    sm2_fp_from_bytes(augend, augend11);
    sm2_fp_from_bytes(addend, addend11);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum11, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend12[32] = {0x90,0xc5,0x10,0x32,0x20,0x72,0xc3,0xfc,0xce,0x62,0x21,0xd4,0x3a,0x7e,0x4a,0xe1,0xf6,0x0d,0xe3,0x57,0x7a,0x43,0x2b,0x15,0x92,0xab,0x25,0x11,0x04,0xce,0x64,0x6d};
    static std::uint8_t addend12[32] = {0x52,0xc3,0x3f,0x10,0x3b,0x26,0x91,0xd6,0x99,0x2b,0x52,0x13,0xae,0xe7,0x32,0x99,0xff,0xf1,0x60,0xdb,0x5c,0x73,0x1a,0x7c,0xc4,0xf0,0x66,0x98,0x3a,0xb7,0x43,0xd1};
    static std::uint8_t sum12[32]    = {0xe3,0x88,0x4f,0x42,0x5b,0x99,0x55,0xd3,0x67,0x8d,0x73,0xe7,0xe9,0x65,0x7d,0x7b,0xf5,0xff,0x44,0x32,0xd6,0xb6,0x45,0x92,0x57,0x9b,0x8b,0xa9,0x3f,0x85,0xa8,0x3e};
    sm2_fp_from_bytes(augend, augend12);
    sm2_fp_from_bytes(addend, addend12);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum12, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend13[32] = {0xd3,0x7b,0xa3,0x52,0xb9,0x46,0xd7,0x80,0x5f,0x57,0xa7,0xfe,0x81,0x2d,0x27,0xc5,0xdd,0xd8,0xfd,0x35,0xa0,0xdb,0xf9,0xbc,0x7b,0x59,0x72,0x8c,0x7e,0x01,0x4f,0x08};
    static std::uint8_t addend13[32] = {0x77,0xbc,0xb5,0xe7,0xb4,0xc0,0x25,0x8e,0x99,0xd0,0xf8,0x1c,0x97,0x74,0xbc,0x8d,0xd6,0x04,0x47,0x6c,0x2e,0x2f,0x93,0xb7,0xa8,0xa4,0xe0,0x95,0x21,0xc6,0xf2,0xe0};
    static std::uint8_t sum13[32]    = {0x4b,0x38,0x59,0x3b,0x6e,0x06,0xfd,0x0e,0xf9,0x28,0xa0,0x1b,0x18,0xa1,0xe4,0x53,0xb3,0xdd,0x44,0xa2,0xcf,0x0b,0x8d,0x73,0x23,0xfe,0x53,0x21,0x9f,0xc8,0x41,0xe9};
    sm2_fp_from_bytes(augend, augend13);
    sm2_fp_from_bytes(addend, addend13);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum13, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend14[32] = {0x04,0xb5,0xa3,0x68,0x3c,0xb2,0x03,0x2e,0xd2,0xf1,0x48,0xa0,0xf6,0xc3,0x19,0x5f,0x0b,0x3e,0x35,0x1b,0x5b,0x96,0xbf,0x1f,0xfe,0xfa,0x4e,0x5a,0x8d,0x56,0x12,0x57};
    static std::uint8_t addend14[32] = {0x9e,0xb3,0x5a,0xbe,0xcb,0x83,0xf2,0x40,0x48,0x10,0xd7,0xc7,0x1c,0x26,0x6b,0xc6,0x21,0x8b,0x35,0x86,0xbb,0x58,0x49,0x57,0x18,0x78,0x44,0xe8,0xde,0xbd,0xa0,0x78};
    static std::uint8_t sum14[32]    = {0xa3,0x68,0xfe,0x27,0x08,0x35,0xf5,0x6f,0x1b,0x02,0x20,0x68,0x12,0xe9,0x85,0x25,0x2c,0xc9,0x6a,0xa2,0x16,0xef,0x08,0x77,0x17,0x72,0x93,0x43,0x6c,0x13,0xb2,0xcf};
    sm2_fp_from_bytes(augend, augend14);
    sm2_fp_from_bytes(addend, addend14);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum14, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend15[32] = {0xbf,0xff,0x26,0x41,0x6b,0xde,0x7a,0x93,0xdb,0x80,0x43,0x29,0xb2,0xb7,0x36,0x35,0x50,0x5e,0xab,0xc1,0x24,0x14,0x4f,0xdd,0xbf,0x25,0x10,0x4f,0x59,0x99,0xa7,0xd0};
    static std::uint8_t addend15[32] = {0x27,0x15,0xf1,0x2a,0xaa,0x68,0xe3,0xad,0x26,0xfd,0xb7,0xfe,0xc5,0xb6,0x44,0x49,0xfe,0x25,0xcb,0xcd,0x6d,0xca,0x30,0x1b,0x61,0xab,0xd4,0x11,0x13,0xe2,0x6f,0xb3};
    static std::uint8_t sum15[32]    = {0xe7,0x15,0x17,0x6c,0x16,0x47,0x5e,0x41,0x02,0x7d,0xfb,0x28,0x78,0x6d,0x7a,0x7f,0x4e,0x84,0x77,0x8e,0x91,0xde,0x7f,0xf9,0x20,0xd0,0xe4,0x60,0x6d,0x7c,0x17,0x83};
    sm2_fp_from_bytes(augend, augend15);
    sm2_fp_from_bytes(addend, addend15);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum15, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend16[32] = {0x1a,0x0d,0xf9,0x8a,0x1b,0x88,0x8e,0xbd,0x36,0x06,0x84,0x5a,0xe6,0x9c,0x87,0xb9,0x29,0x1d,0xcf,0xa7,0x96,0xf5,0xce,0x87,0x4e,0x26,0xb3,0x4b,0xff,0x92,0xdf,0x5c};
    static std::uint8_t addend16[32] = {0x63,0xf7,0x3e,0x22,0x69,0x08,0xc8,0xde,0xaa,0xc2,0xe5,0x46,0xd4,0x96,0xa8,0xe6,0x3b,0x12,0xd9,0x2b,0x1f,0x8d,0x91,0xdb,0xde,0x67,0xff,0x70,0xa9,0x95,0xce,0x6e};
    static std::uint8_t sum16[32]    = {0x7e,0x05,0x37,0xac,0x84,0x91,0x57,0x9b,0xe0,0xc9,0x69,0xa1,0xbb,0x33,0x30,0x9f,0x64,0x30,0xa8,0xd2,0xb6,0x83,0x60,0x63,0x2c,0x8e,0xb2,0xbc,0xa9,0x28,0xad,0xca};
    sm2_fp_from_bytes(augend, augend16);
    sm2_fp_from_bytes(addend, addend16);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum16, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend17[32] = {0x5c,0x14,0x86,0xb4,0x5f,0xc5,0x35,0xee,0x3a,0x14,0xf2,0xca,0x78,0x36,0xfe,0xfa,0x4a,0xf4,0xc6,0xc7,0x82,0x45,0x4d,0xe8,0xe9,0x77,0x01,0x8e,0x97,0x17,0xb5,0xd2};
    static std::uint8_t addend17[32] = {0x7f,0xf2,0x3c,0xc2,0x17,0x0f,0x78,0x72,0x75,0xac,0xd3,0x08,0x51,0xb4,0x83,0x6e,0x65,0x03,0x34,0xe7,0x09,0x19,0x7a,0xfc,0x75,0xdf,0x5d,0x14,0xa9,0xa4,0x42,0xdc};
    static std::uint8_t sum17[32]    = {0xdc,0x06,0xc3,0x76,0x76,0xd4,0xae,0x60,0xaf,0xc1,0xc5,0xd2,0xc9,0xeb,0x82,0x68,0xaf,0xf7,0xfb,0xae,0x8b,0x5e,0xc8,0xe5,0x5f,0x56,0x5e,0xa3,0x40,0xbb,0xf8,0xae};
    sm2_fp_from_bytes(augend, augend17);
    sm2_fp_from_bytes(addend, addend17);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum17, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend18[32] = {0x2d,0x18,0x23,0xa1,0x40,0x76,0x88,0x5c,0x18,0x6d,0x45,0x8d,0x47,0x3a,0x11,0x2b,0x3e,0x46,0x48,0xa1,0x37,0x25,0x07,0xf9,0x09,0x98,0x9f,0xab,0x05,0x39,0x85,0x87};
    static std::uint8_t addend18[32] = {0x98,0x2f,0xe6,0x59,0xe4,0xcd,0x42,0x53,0x19,0x52,0xfe,0xc9,0xeb,0xfc,0x04,0x3c,0x67,0x3c,0x85,0xc9,0xf8,0x98,0xab,0x03,0xd3,0xb3,0x02,0x75,0x66,0xc2,0x99,0x7e};
    static std::uint8_t sum18[32]    = {0xc5,0x48,0x09,0xfb,0x25,0x43,0xca,0xaf,0x31,0xc0,0x44,0x57,0x33,0x36,0x15,0x67,0xa5,0x82,0xce,0x6b,0x2f,0xbd,0xb2,0xfc,0xdd,0x4b,0xa2,0x20,0x6b,0xfc,0x1f,0x05};
    sm2_fp_from_bytes(augend, augend18);
    sm2_fp_from_bytes(addend, addend18);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum18, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend19[32] = {0xe7,0x0a,0xed,0x97,0xe7,0x65,0x6e,0xc8,0x15,0x7b,0x4c,0xfc,0xe7,0x5d,0x75,0x19,0x45,0x22,0xed,0x2e,0x37,0x06,0x0a,0x3a,0x2a,0xc2,0xd0,0x25,0x5a,0xba,0x49,0x5e};
    static std::uint8_t addend19[32] = {0xb1,0x47,0x9b,0x6d,0x41,0x64,0x49,0xda,0x14,0x4a,0x77,0xdd,0x87,0x2c,0x93,0x5d,0x34,0x2d,0xf0,0xba,0xb3,0x1c,0x7b,0xdc,0xfb,0x18,0xae,0xfa,0x63,0xd0,0x35,0xad};
    static std::uint8_t sum19[32]    = {0x98,0x52,0x89,0x06,0x28,0xc9,0xb8,0xa2,0x29,0xc5,0xc4,0xda,0x6e,0x8a,0x08,0x76,0x79,0x50,0xdd,0xe9,0xea,0x22,0x86,0x16,0x25,0xdb,0x7f,0x1f,0xbe,0x8a,0x7f,0x0c};
    sm2_fp_from_bytes(augend, augend19);
    sm2_fp_from_bytes(addend, addend19);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum19, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend20[32] = {0xda,0xc7,0x0c,0x48,0xc9,0x25,0x74,0x02,0x11,0xce,0x31,0x33,0x9c,0xdb,0x9a,0x37,0x81,0x40,0xa9,0xb4,0x26,0x34,0x80,0x63,0x9f,0x2f,0x1e,0x28,0x05,0xf5,0x06,0x9a};
    static std::uint8_t addend20[32] = {0x04,0xca,0xd9,0x15,0x0f,0x72,0xf9,0xe0,0xe8,0xfa,0x4a,0xef,0x79,0x6a,0xa4,0x91,0x5a,0xbb,0xee,0xa7,0xa9,0x03,0xf6,0xaf,0xef,0xc1,0xad,0x17,0x54,0x1e,0x74,0x9c};
    static std::uint8_t sum20[32]    = {0xdf,0x91,0xe5,0x5d,0xd8,0x98,0x6d,0xe2,0xfa,0xc8,0x7c,0x23,0x16,0x46,0x3e,0xc8,0xdb,0xfc,0x98,0x5b,0xcf,0x38,0x77,0x13,0x8e,0xf0,0xcb,0x3f,0x5a,0x13,0x7b,0x36};
    sm2_fp_from_bytes(augend, augend20);
    sm2_fp_from_bytes(addend, addend20);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum20, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend21[32] = {0xb8,0x09,0xcf,0xe7,0x9f,0x84,0x43,0xd0,0x63,0x59,0xf2,0xfc,0x01,0xdc,0x87,0xb2,0x0f,0xdf,0x05,0x2c,0x7e,0x0d,0xfd,0x66,0x0e,0xb8,0x15,0x67,0x76,0xe4,0x1a,0x7b};
    static std::uint8_t addend21[32] = {0xe5,0x39,0x58,0x02,0x52,0x38,0xbc,0x2a,0x99,0x33,0xaf,0xe9,0xdb,0x80,0x6f,0x7d,0x74,0x01,0xaf,0x41,0x2a,0xc1,0x37,0xd8,0x26,0x71,0x3f,0x5d,0x1d,0x18,0xc5,0x3e};
    static std::uint8_t sum21[32]    = {0x9d,0x43,0x27,0xea,0xf1,0xbc,0xff,0xfa,0xfc,0x8d,0xa2,0xe5,0xdd,0x5c,0xf7,0x2f,0x83,0xe0,0xb4,0x6e,0xa8,0xcf,0x35,0x3d,0x35,0x29,0x54,0xc4,0x93,0xfc,0xdf,0xba};
    sm2_fp_from_bytes(augend, augend21);
    sm2_fp_from_bytes(addend, addend21);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum21, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend22[32] = {0x02,0xb6,0x1b,0x58,0x25,0xbe,0xb8,0xdb,0x31,0xd1,0xff,0x1c,0xf0,0xdb,0xd7,0xfe,0x9e,0x1d,0xaa,0x98,0x43,0xd6,0xcd,0xa6,0x95,0xfe,0x50,0x81,0x75,0x89,0xc8,0x01};
    static std::uint8_t addend22[32] = {0xd6,0xe5,0xb1,0x36,0xbb,0x02,0x34,0xbd,0x91,0xe6,0x0a,0xf1,0x17,0xc6,0xf3,0xe6,0xff,0x41,0x04,0xf9,0x12,0x8b,0x53,0xe2,0xdc,0x93,0xe8,0x5d,0x1e,0xd1,0xb1,0xf3};
    static std::uint8_t sum22[32]    = {0xd9,0x9b,0xcc,0x8e,0xe0,0xc0,0xed,0x98,0xc3,0xb8,0x0a,0x0e,0x08,0xa2,0xcb,0xe5,0x9d,0x5e,0xaf,0x91,0x56,0x62,0x21,0x89,0x72,0x92,0x38,0xde,0x94,0x5b,0x79,0xf4};
    sm2_fp_from_bytes(augend, augend22);
    sm2_fp_from_bytes(addend, addend22);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum22, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend23[32] = {0x41,0x35,0xfa,0xdb,0x79,0xb8,0xaa,0x29,0x37,0xb6,0xbf,0x65,0x63,0x4d,0xb3,0xe2,0xae,0x5d,0xc4,0x7f,0x6f,0x49,0xc2,0x2c,0xe7,0x8f,0x00,0xea,0xd4,0x24,0x78,0x8d};
    static std::uint8_t addend23[32] = {0x6a,0xa1,0x29,0x19,0xa0,0x13,0x87,0xd6,0x6b,0xfd,0x8e,0x0d,0xf7,0xb8,0x6f,0x5c,0x3e,0x83,0xc2,0xc4,0x53,0x87,0xcf,0x6e,0x4a,0x4c,0xbb,0xc3,0x64,0xc1,0xca,0x29};
    static std::uint8_t sum23[32]    = {0xab,0xd7,0x23,0xf5,0x19,0xcc,0x31,0xff,0xa3,0xb4,0x4d,0x73,0x5b,0x06,0x23,0x3e,0xec,0xe1,0x87,0x43,0xc2,0xd1,0x91,0x9b,0x31,0xdb,0xbc,0xae,0x38,0xe6,0x42,0xb6};
    sm2_fp_from_bytes(augend, augend23);
    sm2_fp_from_bytes(addend, addend23);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum23, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend24[32] = {0x74,0x35,0x1e,0x71,0x99,0x23,0x29,0x24,0x23,0x2d,0x1a,0x1a,0xfa,0x43,0x9c,0xd3,0x7a,0x4d,0xbc,0x36,0x99,0xfb,0xed,0x48,0x1a,0xc8,0x4e,0x8c,0x97,0xbc,0x22,0x2a};
    static std::uint8_t addend24[32] = {0xb1,0x5d,0x7a,0xb5,0xd9,0xf4,0x37,0x3e,0x39,0x00,0xbd,0x47,0x8e,0xf5,0x59,0xc5,0x1a,0xb8,0x9f,0x1e,0x28,0x86,0xc9,0xb8,0x3c,0x99,0x44,0x49,0x6a,0x4b,0xce,0x99};
    static std::uint8_t sum24[32]    = {0x25,0x92,0x99,0x28,0x73,0x17,0x60,0x62,0x5c,0x2d,0xd7,0x62,0x89,0x38,0xf6,0x98,0x95,0x06,0x5b,0x55,0xc2,0x82,0xb6,0xff,0x57,0x61,0x92,0xd6,0x02,0x07,0xf0,0xc4};
    sm2_fp_from_bytes(augend, augend24);
    sm2_fp_from_bytes(addend, addend24);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum24, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend25[32] = {0x8b,0x0c,0x5a,0x80,0x0e,0xcd,0xa2,0x8f,0xe3,0xab,0xc5,0x7d,0x89,0xb0,0x68,0x4c,0xfd,0x94,0x1e,0xf6,0x1d,0x61,0x3f,0x1d,0x34,0xf0,0xf6,0xed,0x50,0x29,0x99,0x49};
    static std::uint8_t addend25[32] = {0xcf,0x5e,0x80,0xe1,0x24,0xcb,0x84,0x78,0x84,0xd2,0x54,0x40,0xea,0x31,0x12,0xf9,0x1d,0xf7,0xd5,0xd7,0x67,0xda,0x27,0x58,0xc7,0x05,0x9f,0xcb,0x5e,0xda,0xa3,0xef};
    static std::uint8_t sum25[32]    = {0x5a,0x6a,0xdb,0x62,0x33,0x99,0x27,0x08,0x68,0x7e,0x19,0xbe,0x73,0xe1,0x7b,0x46,0x1b,0x8b,0xf4,0xce,0x85,0x3b,0x66,0x74,0xfb,0xf6,0x96,0xb8,0xaf,0x04,0x3d,0x39};
    sm2_fp_from_bytes(augend, augend25);
    sm2_fp_from_bytes(addend, addend25);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum25, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend26[32] = {0x97,0xa2,0x7f,0x8c,0x8a,0x24,0x8c,0x63,0xc5,0x27,0x3b,0x0e,0x23,0x17,0xeb,0xa7,0x80,0x6f,0x56,0xc9,0xc7,0x54,0xb4,0xd6,0x26,0xbe,0x50,0xd3,0x1f,0x54,0x90,0xdc};
    static std::uint8_t addend26[32] = {0xfa,0x47,0x1d,0x2c,0xaa,0xe3,0x49,0x7c,0xbb,0x36,0x8a,0x1f,0xf9,0xaa,0x03,0xee,0xc6,0xb9,0xd7,0x29,0xfb,0x63,0x72,0x16,0x6d,0x2e,0xf9,0xc9,0xfb,0x87,0x54,0xc5};
    static std::uint8_t sum26[32]    = {0x91,0xe9,0x9c,0xba,0x35,0x07,0xd5,0xe0,0x80,0x5d,0xc5,0x2e,0x1c,0xc1,0xef,0x96,0x47,0x29,0x2d,0xf4,0xc2,0xb8,0x26,0xeb,0x93,0xed,0x4a,0x9d,0x1a,0xdb,0xe5,0xa2};
    sm2_fp_from_bytes(augend, augend26);
    sm2_fp_from_bytes(addend, addend26);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum26, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend27[32] = {0x7a,0x34,0x36,0xd1,0xac,0xa5,0x67,0x01,0x55,0xab,0x62,0x47,0xcb,0x7f,0xea,0x35,0xce,0xb3,0x5e,0x72,0x83,0xa8,0x66,0x3f,0x87,0x1f,0x9b,0x62,0xc3,0x47,0xb2,0x36};
    static std::uint8_t addend27[32] = {0xa1,0xc1,0xaf,0xf6,0x1b,0xb9,0x14,0x5f,0xd9,0x1f,0x43,0x60,0xdd,0x4b,0x4e,0x12,0x67,0x16,0xf5,0x68,0xc3,0x6f,0xc7,0xe3,0xe5,0x87,0xf5,0x61,0x3b,0xad,0xb5,0x59};
    static std::uint8_t sum27[32]    = {0x1b,0xf5,0xe6,0xc8,0xc8,0x5e,0x7b,0x61,0x2e,0xca,0xa5,0xa8,0xa8,0xcb,0x38,0x48,0x35,0xca,0x53,0xdc,0x47,0x18,0x2e,0x22,0x6c,0xa7,0x90,0xc3,0xfe,0xf5,0x67,0x90};
    sm2_fp_from_bytes(augend, augend27);
    sm2_fp_from_bytes(addend, addend27);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum27, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend28[32] = {0x21,0x55,0x49,0x64,0xd8,0x76,0xaa,0x56,0x5e,0x65,0x06,0xc1,0xc7,0xf9,0xd1,0xb6,0xa9,0xb0,0xf2,0xab,0x6c,0x41,0x9c,0x8b,0x29,0xda,0xe5,0x5d,0xd1,0x4a,0x23,0x1f};
    static std::uint8_t addend28[32] = {0x11,0xa6,0xa9,0x36,0x97,0xc5,0x1c,0x14,0x7b,0xbe,0x59,0x76,0xd4,0xe7,0x27,0xc7,0xe6,0x47,0x90,0x23,0x5b,0x02,0xf2,0xae,0xde,0x1f,0x28,0x46,0x63,0x6c,0xdf,0xc3};
    static std::uint8_t sum28[32]    = {0x32,0xfb,0xf2,0x9b,0x70,0x3b,0xc6,0x6a,0xda,0x23,0x60,0x38,0x9c,0xe0,0xf9,0x7e,0x8f,0xf8,0x82,0xce,0xc7,0x44,0x8f,0x3a,0x07,0xfa,0x0d,0xa4,0x34,0xb7,0x02,0xe2};
    sm2_fp_from_bytes(augend, augend28);
    sm2_fp_from_bytes(addend, addend28);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum28, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend29[32] = {0xba,0x81,0xc7,0xe7,0x72,0x15,0xe9,0x8f,0x3c,0xa7,0xd8,0xc7,0x35,0xca,0xec,0x97,0x2b,0xf7,0x45,0xa4,0x8c,0xed,0xe8,0x3d,0xdf,0x86,0x88,0x8d,0x73,0x88,0x9f,0x19};
    static std::uint8_t addend29[32] = {0xef,0x15,0xe6,0xa2,0xcc,0x4b,0xd1,0x30,0x50,0x93,0xcc,0xaa,0x32,0xbb,0x01,0x72,0x74,0x87,0x04,0x1f,0x18,0x30,0xc9,0x14,0x6c,0x7f,0xc6,0x35,0x81,0x51,0xc2,0x44};
    static std::uint8_t sum29[32]    = {0xa9,0x97,0xae,0x8b,0x3e,0x61,0xba,0xbf,0x8d,0x3b,0xa5,0x71,0x68,0x85,0xee,0x09,0xa0,0x7e,0x49,0xc4,0xa5,0x1e,0xb1,0x51,0x4c,0x06,0x4e,0xc2,0xf4,0xda,0x61,0x5e};
    sm2_fp_from_bytes(augend, augend29);
    sm2_fp_from_bytes(addend, addend29);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum29, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend30[32] = {0x29,0x98,0x49,0x04,0x22,0x61,0x69,0x0d,0x15,0x4f,0x42,0x8f,0x1b,0xaa,0xf4,0x06,0xe8,0x2f,0x01,0x4f,0x2c,0x17,0x74,0xdb,0x81,0xc8,0xcf,0x6a,0x4d,0x11,0x0f,0xc4};
    static std::uint8_t addend30[32] = {0x6a,0x43,0x60,0xab,0x54,0x7c,0x74,0xbe,0x82,0x93,0x7f,0x45,0x45,0xf5,0xe4,0x14,0xdf,0x31,0xa9,0x3e,0xe6,0x46,0x2b,0x11,0xc6,0xb2,0x28,0x0a,0xcf,0x49,0xb8,0x80};
    static std::uint8_t sum30[32]    = {0x93,0xdb,0xa9,0xaf,0x76,0xdd,0xdd,0xcb,0x97,0xe2,0xc1,0xd4,0x61,0xa0,0xd8,0x1b,0xc7,0x60,0xaa,0x8e,0x12,0x5d,0x9f,0xed,0x48,0x7a,0xf7,0x75,0x1c,0x5a,0xc8,0x44};
    sm2_fp_from_bytes(augend, augend30);
    sm2_fp_from_bytes(addend, addend30);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum30, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend31[32] = {0xba,0xee,0x85,0x86,0x06,0x70,0xc5,0xee,0x7a,0xfe,0xfe,0x47,0x1b,0x47,0x9a,0x79,0x18,0x22,0x42,0x47,0x00,0xc5,0xb5,0x57,0x6f,0xc2,0x47,0x6b,0xe4,0x67,0xe7,0x16};
    static std::uint8_t addend31[32] = {0xa0,0x6a,0x5c,0xe9,0x24,0x06,0x31,0xe3,0xe9,0x2c,0x55,0xd8,0x57,0x11,0xc8,0x84,0x08,0xab,0xc3,0xc7,0xe5,0x4b,0xff,0xff,0xe9,0xf7,0xfa,0x73,0x55,0x0c,0xc7,0x65};
    static std::uint8_t sum31[32]    = {0x5b,0x58,0xe2,0x70,0x2a,0x76,0xf7,0xd2,0x64,0x2b,0x54,0x1f,0x72,0x59,0x62,0xfd,0x20,0xce,0x06,0x0f,0xe6,0x11,0xb5,0x56,0x59,0xba,0x41,0xdf,0x39,0x74,0xae,0x7c};
    sm2_fp_from_bytes(augend, augend31);
    sm2_fp_from_bytes(addend, addend31);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum31, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend32[32] = {0xbc,0x61,0x76,0x10,0x3d,0xd8,0x6c,0xbe,0xc9,0x5e,0x01,0x48,0x0b,0x34,0x04,0x41,0x09,0x38,0xed,0x68,0xe9,0xf2,0x74,0x9d,0x59,0x77,0xf8,0x90,0x62,0x67,0xf4,0xba};
    static std::uint8_t addend32[32] = {0x61,0x54,0x36,0x04,0xc9,0xc0,0xde,0x95,0x3d,0xd3,0xce,0xc4,0x72,0x69,0xfc,0x84,0x91,0x5c,0xc8,0x8f,0xc4,0x89,0xab,0x8c,0x0f,0xfb,0x71,0x1c,0xc7,0xca,0x16,0xd9};
    static std::uint8_t sum32[32]    = {0x1d,0xb5,0xac,0x16,0x07,0x99,0x4b,0x54,0x07,0x31,0xd0,0x0c,0x7d,0x9e,0x00,0xc5,0x9a,0x95,0xb5,0xf9,0xae,0x7c,0x20,0x28,0x69,0x73,0x69,0xad,0x2a,0x32,0x0b,0x94};
    sm2_fp_from_bytes(augend, augend32);
    sm2_fp_from_bytes(addend, addend32);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum32, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend33[32] = {0xf6,0x74,0xc7,0x0f,0xef,0x67,0xef,0xb5,0x1b,0x76,0xf0,0xa7,0x22,0xf1,0x05,0xfa,0x1f,0x44,0xfc,0x00,0x5d,0xe3,0xdd,0x7c,0x92,0x3b,0xa2,0xbc,0x73,0x1a,0x87,0x69};
    static std::uint8_t addend33[32] = {0x5f,0xd9,0x41,0x80,0x1f,0xed,0x31,0x32,0x59,0x6c,0x0b,0x89,0xaa,0x5a,0x79,0xdc,0x04,0x20,0xe5,0x59,0x73,0x71,0xbb,0x70,0x66,0x09,0xa9,0x80,0x9c,0xa3,0x6a,0x6c};
    static std::uint8_t sum33[32]    = {0x56,0x4e,0x08,0x91,0x0f,0x55,0x20,0xe7,0x74,0xe2,0xfc,0x30,0xcd,0x4b,0x7f,0xd6,0x23,0x65,0xe1,0x5a,0xd1,0x55,0x98,0xeb,0xf8,0x45,0x4c,0x3d,0x0f,0xbd,0xf1,0xd6};
    sm2_fp_from_bytes(augend, augend33);
    sm2_fp_from_bytes(addend, addend33);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum33, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend34[32] = {0x16,0xa0,0x20,0xfb,0x66,0xc7,0xfd,0x9a,0xb2,0x19,0x47,0x76,0x8d,0x72,0xea,0xad,0x4e,0x66,0x85,0xff,0x3a,0xea,0xf3,0x16,0xa8,0xdc,0x94,0x20,0xea,0xb4,0xca,0xfd};
    static std::uint8_t addend34[32] = {0x51,0x79,0x92,0x17,0x82,0xda,0x12,0x24,0x61,0x83,0x54,0xdd,0xe9,0x24,0x57,0x51,0xa4,0xa1,0x79,0x16,0x82,0x2f,0xbe,0x7c,0xbf,0x57,0xbd,0xf7,0x0b,0x4d,0xff,0x79};
    static std::uint8_t sum34[32]    = {0x68,0x19,0xb3,0x12,0xe9,0xa2,0x0f,0xbf,0x13,0x9c,0x9c,0x54,0x76,0x97,0x41,0xfe,0xf3,0x07,0xff,0x15,0xbd,0x1a,0xb1,0x93,0x68,0x34,0x52,0x17,0xf6,0x02,0xca,0x76};
    sm2_fp_from_bytes(augend, augend34);
    sm2_fp_from_bytes(addend, addend34);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum34, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend35[32] = {0x22,0x48,0x14,0x70,0x4e,0x69,0x6b,0x05,0x34,0x70,0xe4,0x1c,0xbc,0x89,0xfa,0xf9,0x4f,0x81,0x28,0x91,0xc4,0xd8,0xea,0x40,0x8a,0xf1,0x20,0x70,0x35,0x28,0xb5,0x45};
    static std::uint8_t addend35[32] = {0x71,0xe6,0x86,0x25,0xcd,0x18,0x7f,0x4e,0xb5,0xb0,0xfa,0x86,0x8a,0x72,0x32,0xde,0x3e,0xb2,0xb8,0x46,0x5c,0x66,0x2f,0x70,0x91,0xc6,0xe7,0x76,0xad,0xd9,0x83,0xb0};
    static std::uint8_t sum35[32]    = {0x94,0x2e,0x9a,0x96,0x1b,0x81,0xea,0x53,0xea,0x21,0xde,0xa3,0x46,0xfc,0x2d,0xd7,0x8e,0x33,0xe0,0xd8,0x21,0x3f,0x19,0xb1,0x1c,0xb8,0x07,0xe6,0xe3,0x02,0x38,0xf5};
    sm2_fp_from_bytes(augend, augend35);
    sm2_fp_from_bytes(addend, addend35);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum35, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend36[32] = {0x4c,0x8d,0x24,0xac,0xb9,0x26,0x0e,0x2c,0xa7,0x1f,0xc7,0x59,0xc5,0x6e,0x14,0x25,0x0b,0x7c,0x1e,0xfa,0x2b,0xc2,0x39,0xfb,0x55,0x3f,0x7f,0x33,0x42,0xe6,0x0e,0x10};
    static std::uint8_t addend36[32] = {0xd7,0xd2,0x90,0x9a,0x2e,0x07,0xac,0x98,0xba,0x8e,0xbd,0x92,0xa6,0x58,0xca,0x2e,0xa5,0x5a,0xa5,0xa8,0xea,0x31,0x8d,0x68,0xcc,0xc9,0xf5,0x69,0x2d,0x34,0x64,0xd2};
    static std::uint8_t sum36[32]    = {0x24,0x5f,0xb5,0x47,0xe7,0x2d,0xba,0xc5,0x61,0xae,0x84,0xec,0x6b,0xc6,0xde,0x53,0xb0,0xd6,0xc4,0xa4,0x15,0xf3,0xc7,0x63,0x22,0x09,0x74,0x9c,0x70,0x1a,0x72,0xe3};
    sm2_fp_from_bytes(augend, augend36);
    sm2_fp_from_bytes(addend, addend36);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum36, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend37[32] = {0xea,0x96,0x22,0x79,0xdb,0xd4,0x1c,0x78,0x5f,0xa7,0x6a,0x87,0x87,0x0f,0x2d,0xd9,0xef,0x27,0x78,0x91,0x45,0xb5,0x95,0x1a,0xb1,0xa7,0x75,0x26,0x07,0x5d,0x45,0x42};
    static std::uint8_t addend37[32] = {0xff,0xf7,0xbe,0x5a,0x0d,0xaa,0x26,0xe2,0x0c,0x06,0xad,0xb0,0xb6,0x05,0xeb,0xf5,0x7f,0x6e,0x7a,0x5a,0xd8,0xb2,0x3f,0xe9,0xf8,0x2d,0xbb,0x59,0x77,0x00,0xa7,0x61};
    static std::uint8_t sum37[32]    = {0xea,0x8d,0xe0,0xd4,0xe9,0x7e,0x43,0x5a,0x6b,0xae,0x18,0x38,0x3d,0x15,0x19,0xcf,0x6e,0x95,0xf2,0xed,0x1e,0x67,0xd5,0x03,0xa9,0xd5,0x30,0x7f,0x7e,0x5d,0xec,0xa4};
    sm2_fp_from_bytes(augend, augend37);
    sm2_fp_from_bytes(addend, addend37);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum37, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend38[32] = {0x9f,0x26,0x2f,0xf2,0x22,0x6c,0x97,0xcc,0x3d,0xb6,0x97,0xdd,0xf2,0xa4,0x5c,0xc2,0x15,0x9d,0x23,0x56,0x7d,0xf0,0x3b,0x7e,0x28,0x43,0x3c,0x1a,0x21,0x85,0x24,0xd0};
    static std::uint8_t addend38[32] = {0x24,0x27,0x09,0x19,0x30,0xc8,0x07,0x53,0xec,0xcc,0xaf,0x9b,0xea,0xac,0xb8,0xf6,0x71,0x9d,0x9d,0x30,0xad,0x3b,0x4c,0x4f,0x09,0xc7,0x56,0xf7,0x30,0x96,0x4b,0xdf};
    static std::uint8_t sum38[32]    = {0xc3,0x4d,0x39,0x0b,0x53,0x34,0x9f,0x20,0x2a,0x83,0x47,0x79,0xdd,0x51,0x15,0xb8,0x87,0x3a,0xc0,0x87,0x2b,0x2b,0x87,0xcd,0x32,0x0a,0x93,0x11,0x52,0x1b,0x70,0xaf};
    sm2_fp_from_bytes(augend, augend38);
    sm2_fp_from_bytes(addend, addend38);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum38, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend39[32] = {0x41,0xca,0xb2,0x24,0x7a,0x9b,0xe9,0x0d,0x93,0xb2,0x78,0xc4,0xc1,0x64,0xf7,0x09,0x3d,0x4b,0x68,0xcf,0x5d,0xff,0x94,0xa0,0xac,0xb6,0xa4,0xf7,0x00,0xe9,0x82,0xf5};
    static std::uint8_t addend39[32] = {0x76,0x74,0x8f,0xf2,0x9a,0x57,0x74,0x23,0x3d,0xa8,0x7a,0xe8,0xb1,0xb1,0xa5,0x4e,0x65,0xe0,0x53,0x51,0x00,0xaa,0x3a,0x25,0xb4,0x86,0x7c,0xb0,0x06,0xe7,0x3e,0x7e};
    static std::uint8_t sum39[32]    = {0xb8,0x3f,0x42,0x17,0x14,0xf3,0x5d,0x30,0xd1,0x5a,0xf3,0xad,0x73,0x16,0x9c,0x57,0xa3,0x2b,0xbc,0x20,0x5e,0xa9,0xce,0xc6,0x61,0x3d,0x21,0xa7,0x07,0xd0,0xc1,0x73};
    sm2_fp_from_bytes(augend, augend39);
    sm2_fp_from_bytes(addend, addend39);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum39, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend40[32] = {0x7e,0x12,0x89,0x79,0x82,0xe2,0x3e,0x83,0x9f,0x99,0xf8,0x1f,0x09,0x80,0x21,0xd0,0xc7,0x3a,0xae,0x57,0x51,0xab,0x5d,0x8e,0x25,0x04,0xb6,0xcf,0x9b,0x4c,0xd6,0x5b};
    static std::uint8_t addend40[32] = {0x12,0xe2,0x83,0x29,0x7a,0xad,0xca,0xcb,0x46,0x08,0x2c,0x21,0x13,0x6d,0x3e,0xe7,0x7e,0x46,0xc3,0xe1,0x8a,0x68,0xc5,0xb3,0xcb,0xd8,0x5e,0xdc,0x7d,0x9c,0x2d,0x9f};
    static std::uint8_t sum40[32]    = {0x90,0xf5,0x0c,0xa2,0xfd,0x90,0x09,0x4e,0xe5,0xa2,0x24,0x40,0x1c,0xed,0x60,0xb8,0x45,0x81,0x72,0x38,0xdc,0x14,0x23,0x41,0xf0,0xdd,0x15,0xac,0x18,0xe9,0x03,0xfa};
    sm2_fp_from_bytes(augend, augend40);
    sm2_fp_from_bytes(addend, addend40);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum40, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend41[32] = {0x28,0x51,0x88,0x0a,0x97,0x8c,0x27,0x8d,0x8c,0xb0,0x4c,0xef,0x0e,0x3b,0x58,0xc8,0xee,0x16,0x10,0x0a,0x65,0xdf,0xdd,0x17,0xcf,0x97,0x57,0x43,0x42,0x5f,0xb6,0x05};
    static std::uint8_t addend41[32] = {0x21,0xc0,0x75,0x7e,0x0d,0xfa,0x0a,0xad,0xf4,0x71,0x4c,0x22,0x0e,0xa4,0x56,0x10,0xbd,0xf5,0xfe,0xa8,0x29,0x23,0x27,0x96,0x0d,0x8d,0x8f,0xda,0xea,0xe6,0xb9,0x66};
    static std::uint8_t sum41[32]    = {0x4a,0x11,0xfd,0x88,0xa5,0x86,0x32,0x3b,0x81,0x21,0x99,0x11,0x1c,0xdf,0xae,0xd9,0xac,0x0c,0x0e,0xb2,0x8f,0x03,0x04,0xad,0xdd,0x24,0xe7,0x1e,0x2d,0x46,0x6f,0x6b};
    sm2_fp_from_bytes(augend, augend41);
    sm2_fp_from_bytes(addend, addend41);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum41, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend42[32] = {0xb8,0x2f,0xce,0x37,0x08,0x0e,0xf8,0xcb,0x4c,0xbf,0x90,0xaf,0xe6,0x2c,0x04,0x23,0x1e,0xa0,0xf2,0xb4,0x65,0xca,0xe3,0x93,0x79,0x97,0x97,0x73,0xa7,0x58,0x66,0x8e};
    static std::uint8_t addend42[32] = {0x31,0xe9,0xf8,0x63,0x44,0x32,0xb3,0x74,0x5f,0x42,0x69,0x0d,0x12,0xab,0xc4,0x71,0x2f,0x36,0xa4,0xa2,0x3d,0xb0,0xf0,0x46,0xc8,0x5b,0x6c,0x13,0x03,0x48,0x15,0x73};
    static std::uint8_t sum42[32]    = {0xea,0x19,0xc6,0x9a,0x4c,0x41,0xac,0x3f,0xac,0x01,0xf9,0xbc,0xf8,0xd7,0xc8,0x94,0x4d,0xd7,0x97,0x56,0xa3,0x7b,0xd3,0xda,0x41,0xf3,0x03,0x86,0xaa,0xa0,0x7c,0x01};
    sm2_fp_from_bytes(augend, augend42);
    sm2_fp_from_bytes(addend, addend42);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum42, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend43[32] = {0xd9,0xca,0x8a,0x8b,0xa5,0x18,0xec,0x60,0xfc,0xd1,0xa8,0xaa,0xc0,0x76,0x17,0x5d,0xd1,0xc5,0x5f,0x2b,0xa6,0x63,0x41,0x9d,0xf0,0x63,0x2c,0xd8,0x7c,0x6d,0xbb,0x74};
    static std::uint8_t addend43[32] = {0x7d,0xcd,0xed,0x33,0xbd,0x00,0x0c,0x57,0xd5,0x33,0xa5,0xe4,0x56,0x54,0x15,0x95,0xe7,0x98,0x40,0x4e,0x54,0x35,0x6c,0x76,0x2b,0xa8,0x31,0x29,0x43,0x23,0x85,0x30};
    static std::uint8_t sum43[32]    = {0x57,0x98,0x77,0xc0,0x62,0x18,0xf8,0xb8,0xd2,0x05,0x4e,0x8f,0x16,0xca,0x2c,0xf3,0xb9,0x5d,0x9f,0x7a,0xfa,0x98,0xae,0x13,0x1c,0x0b,0x5e,0x01,0xbf,0x91,0x40,0xa5};
    sm2_fp_from_bytes(augend, augend43);
    sm2_fp_from_bytes(addend, addend43);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum43, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend44[32] = {0x1a,0xc9,0x15,0xb9,0x14,0x1e,0xe7,0x92,0x7e,0xe8,0x41,0x7b,0x11,0xdd,0xdf,0x4e,0x0b,0x43,0x73,0x88,0x54,0xec,0x78,0xf3,0xe3,0x1d,0x5e,0xa4,0x85,0x5f,0xf4,0xea};
    static std::uint8_t addend44[32] = {0x07,0x4d,0x25,0x4c,0x87,0x47,0x76,0x4f,0xb2,0x17,0x45,0x13,0xc4,0x1b,0xbc,0xd1,0x10,0xcd,0x5a,0xd8,0x85,0x73,0x1f,0x77,0xcc,0xcf,0xc9,0xd4,0xb0,0x98,0xb2,0x1b};
    static std::uint8_t sum44[32]    = {0x22,0x16,0x3b,0x05,0x9b,0x66,0x5d,0xe2,0x30,0xff,0x86,0x8e,0xd5,0xf9,0x9c,0x1f,0x1c,0x10,0xce,0x60,0xda,0x5f,0x98,0x6b,0xaf,0xed,0x28,0x79,0x35,0xf8,0xa7,0x05};
    sm2_fp_from_bytes(augend, augend44);
    sm2_fp_from_bytes(addend, addend44);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum44, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend45[32] = {0x6d,0xee,0xf8,0xf8,0xba,0x3d,0x40,0xa4,0x4b,0xf7,0xeb,0x31,0x2a,0x02,0x5b,0xf8,0x8e,0xf5,0x33,0x45,0xe1,0xc5,0xa3,0x6f,0x0e,0xda,0x5d,0xd5,0xa1,0x04,0x81,0xc2};
    static std::uint8_t addend45[32] = {0x00,0xf2,0xb4,0x8e,0x8a,0xb9,0xaa,0xdc,0xa4,0x76,0x6f,0xa2,0xe9,0x3d,0x71,0x03,0x51,0x21,0x00,0xaf,0xc8,0x68,0x06,0x0c,0x6f,0x92,0xc0,0xb6,0xc1,0x5c,0x61,0x98};
    static std::uint8_t sum45[32]    = {0x6e,0xe1,0xad,0x87,0x44,0xf6,0xeb,0x80,0xf0,0x6e,0x5a,0xd4,0x13,0x3f,0xcc,0xfb,0xe0,0x16,0x33,0xf5,0xaa,0x2d,0xa9,0x7b,0x7e,0x6d,0x1e,0x8c,0x62,0x60,0xe3,0x5a};
    sm2_fp_from_bytes(augend, augend45);
    sm2_fp_from_bytes(addend, addend45);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum45, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend46[32] = {0xe0,0x73,0xe9,0x7f,0xf6,0x00,0x5d,0x0b,0x33,0x94,0x15,0x00,0xf4,0xc9,0xfd,0x73,0xeb,0xfa,0x9f,0x75,0x49,0x64,0x11,0x0e,0x3b,0x91,0x96,0x81,0x21,0x27,0xc1,0xf1};
    static std::uint8_t addend46[32] = {0x30,0xa4,0x54,0x61,0xb7,0x2a,0x3b,0x2e,0xa1,0x0b,0x27,0x38,0xe8,0x3d,0x4a,0x84,0x6d,0x25,0x9e,0xb3,0x24,0x44,0x3e,0x7c,0x46,0x0d,0x92,0x21,0x00,0x43,0xc8,0x07};
    static std::uint8_t sum46[32]    = {0x11,0x18,0x3d,0xe2,0xad,0x2a,0x98,0x39,0xd4,0x9f,0x3c,0x39,0xdd,0x07,0x47,0xf8,0x59,0x20,0x3e,0x29,0x6d,0xa8,0x4f,0x89,0x81,0x9f,0x28,0xa2,0x21,0x6b,0x89,0xf9};
    sm2_fp_from_bytes(augend, augend46);
    sm2_fp_from_bytes(addend, addend46);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum46, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend47[32] = {0xf3,0x0c,0x39,0x5b,0xdb,0x75,0xb7,0x57,0x9f,0x2d,0x0c,0xa1,0x52,0xf2,0x98,0xa5,0x27,0x78,0x16,0x4b,0x91,0x7a,0x5a,0x4d,0xcd,0x4c,0x60,0x57,0x34,0x8b,0x59,0x1d};
    static std::uint8_t addend47[32] = {0xe4,0xa2,0x40,0x8a,0x2e,0xc0,0x28,0xd1,0xc9,0xd7,0x93,0xfa,0x5f,0xe4,0x55,0x74,0xef,0xc0,0xb3,0x01,0xc4,0x53,0xbc,0x2b,0x43,0xfb,0xf7,0x56,0x4d,0x31,0xc7,0xc9};
    static std::uint8_t sum47[32]    = {0xd7,0xae,0x79,0xe7,0x0a,0x35,0xe0,0x29,0x69,0x04,0xa0,0x9b,0xb2,0xd6,0xee,0x1a,0x17,0x38,0xc9,0x4e,0x55,0xce,0x16,0x78,0x11,0x48,0x57,0xad,0x81,0xbd,0x20,0xe7};
    sm2_fp_from_bytes(augend, augend47);
    sm2_fp_from_bytes(addend, addend47);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum47, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend48[32] = {0x1f,0x69,0x35,0xcb,0xf5,0x4b,0xda,0xfa,0x8b,0x01,0xe3,0x2d,0x2f,0x1a,0xa3,0x29,0xaf,0x5f,0xa8,0x19,0x95,0x86,0x60,0x6d,0xe8,0x8a,0x2f,0x79,0xe3,0xe9,0xab,0x1b};
    static std::uint8_t addend48[32] = {0xa1,0x2c,0x4c,0x59,0xbb,0x86,0xb7,0x89,0x9b,0x46,0x2b,0xdd,0x97,0x28,0x2d,0x5a,0x84,0x41,0x0b,0x81,0x34,0x6e,0x90,0xe1,0xb5,0xbc,0xc4,0x0a,0xd4,0xca,0x07,0x41};
    static std::uint8_t sum48[32]    = {0xc0,0x95,0x82,0x25,0xb0,0xd2,0x92,0x84,0x26,0x48,0x0f,0x0a,0xc6,0x42,0xd0,0x84,0x33,0xa0,0xb3,0x9a,0xc9,0xf4,0xf1,0x4f,0x9e,0x46,0xf3,0x84,0xb8,0xb3,0xb2,0x5c};
    sm2_fp_from_bytes(augend, augend48);
    sm2_fp_from_bytes(addend, addend48);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum48, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend49[32] = {0xf9,0xf2,0xd6,0xb7,0xa7,0x17,0x47,0xa4,0x6e,0x90,0xf3,0xd0,0x4f,0x25,0xb2,0x57,0xfc,0xe9,0x14,0x17,0x79,0x7b,0xb7,0x55,0x4b,0x44,0x0a,0xfc,0x9b,0x1a,0x83,0x4f};
    static std::uint8_t addend49[32] = {0x49,0x70,0xd4,0x7e,0x34,0xdf,0xfb,0xd7,0xc8,0xed,0x8a,0x91,0xdb,0x6f,0x4e,0x7a,0xf3,0x46,0xe9,0xc8,0x5f,0x20,0x41,0x54,0x34,0xe4,0x34,0x81,0x2d,0x17,0x48,0x68};
    static std::uint8_t sum49[32]    = {0x43,0x63,0xab,0x36,0xdb,0xf7,0x43,0x7c,0x37,0x7e,0x7e,0x62,0x2a,0x95,0x00,0xd2,0xf0,0x2f,0xfd,0xe0,0xd8,0x9b,0xf8,0xa8,0x80,0x28,0x3f,0x7d,0xc8,0x31,0xcb,0xb8};
    sm2_fp_from_bytes(augend, augend49);
    sm2_fp_from_bytes(addend, addend49);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum49, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend50[32] = {0xce,0x2b,0xd7,0x21,0x69,0x1a,0x76,0x64,0x01,0xdd,0x70,0x3d,0x93,0x4a,0xa9,0x5c,0xd2,0x46,0x77,0xb4,0x71,0xfa,0x3d,0x0f,0x11,0x8b,0x41,0x44,0x04,0xf0,0x4a,0x0f};
    static std::uint8_t addend50[32] = {0x96,0x93,0x7c,0x8e,0x37,0xd6,0x51,0x36,0x7d,0x57,0x8d,0x26,0x47,0xf1,0x62,0x55,0xa3,0x9d,0xdb,0x0a,0x6e,0x7a,0xd0,0x11,0xbd,0x68,0x01,0x20,0x7f,0xf1,0x32,0xcb};
    static std::uint8_t sum50[32]    = {0x64,0xbf,0x53,0xb0,0xa0,0xf0,0xc7,0x9a,0x7f,0x34,0xfd,0x63,0xdb,0x3c,0x0b,0xb2,0x75,0xe4,0x52,0xbf,0xe0,0x75,0x0d,0x1f,0xce,0xf3,0x42,0x64,0x84,0xe1,0x7c,0xdb};
    sm2_fp_from_bytes(augend, augend50);
    sm2_fp_from_bytes(addend, addend50);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum50, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend51[32] = {0x2e,0x74,0x32,0x07,0x14,0xf8,0x99,0xe4,0x15,0x90,0x4a,0xef,0x99,0x54,0x17,0xdc,0x33,0xb4,0x52,0x97,0xa4,0x92,0x5e,0x2f,0x0f,0x75,0x5b,0xc3,0x49,0x53,0xd6,0xf5};
    static std::uint8_t addend51[32] = {0xc4,0xa5,0x31,0xf2,0xb1,0x9d,0x16,0x6f,0xc8,0x1c,0x85,0x7b,0xb6,0xb3,0x37,0x09,0xd0,0xf2,0xb1,0xf4,0x36,0x4c,0x73,0x2e,0x00,0x13,0xbc,0x73,0x5d,0x80,0xcb,0xd9};
    static std::uint8_t sum51[32]    = {0xf3,0x19,0x63,0xf9,0xc6,0x95,0xb0,0x53,0xdd,0xac,0xd0,0x6b,0x50,0x07,0x4e,0xe6,0x04,0xa7,0x04,0x8b,0xda,0xde,0xd1,0x5d,0x0f,0x89,0x18,0x36,0xa6,0xd4,0xa2,0xce};
    sm2_fp_from_bytes(augend, augend51);
    sm2_fp_from_bytes(addend, addend51);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum51, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend52[32] = {0x54,0x62,0x86,0x1e,0x30,0x37,0x24,0xda,0xe8,0x50,0x5f,0x1a,0x10,0x5d,0x9f,0x1a,0xb2,0xd0,0xec,0xc2,0x31,0x5c,0xf9,0xab,0xe1,0xac,0x26,0xc0,0x51,0xe6,0x63,0x5a};
    static std::uint8_t addend52[32] = {0x44,0x1d,0xae,0x7f,0xf4,0xd8,0x25,0xde,0xbe,0xce,0x68,0xb3,0x36,0x9f,0xf9,0xe3,0x60,0x1d,0xd1,0x6c,0x45,0x22,0x21,0x35,0xa0,0x66,0xc9,0xa5,0xd1,0x20,0xb0,0x30};
    static std::uint8_t sum52[32]    = {0x98,0x80,0x34,0x9e,0x25,0x0f,0x4a,0xb9,0xa7,0x1e,0xc7,0xcd,0x46,0xfd,0x98,0xfe,0x12,0xee,0xbe,0x2e,0x76,0x7f,0x1a,0xe1,0x82,0x12,0xf0,0x66,0x23,0x07,0x13,0x8a};
    sm2_fp_from_bytes(augend, augend52);
    sm2_fp_from_bytes(addend, addend52);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum52, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend53[32] = {0x84,0xd6,0xf5,0xb8,0x5c,0x75,0xa4,0x56,0x72,0x3a,0xc6,0x60,0xd9,0x8c,0x66,0x12,0x7d,0xe2,0x66,0x45,0xd5,0xa9,0x78,0x8b,0x9d,0x92,0x37,0x87,0xaa,0xda,0xdf,0x76};
    static std::uint8_t addend53[32] = {0x8a,0x34,0x1a,0xfe,0xc0,0xa2,0x3d,0x39,0x72,0x6e,0x7b,0x2d,0xb5,0x6a,0x1a,0x3b,0x9a,0x39,0x32,0x57,0x40,0xa3,0x17,0x23,0xa7,0x60,0x7e,0x15,0xf7,0xa0,0xe5,0xf3};
    static std::uint8_t sum53[32]    = {0x0f,0x0b,0x10,0xb8,0x1d,0x17,0xe1,0x8f,0xe4,0xa9,0x41,0x8e,0x8e,0xf6,0x80,0x4e,0x18,0x1b,0x98,0x9e,0x16,0x4c,0x8f,0xae,0x44,0xf2,0xb5,0x9d,0xa2,0x7b,0xc5,0x6a};
    sm2_fp_from_bytes(augend, augend53);
    sm2_fp_from_bytes(addend, addend53);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum53, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend54[32] = {0x58,0x67,0x43,0x80,0xc6,0x67,0xc2,0xc5,0x80,0xbd,0x43,0x0a,0xc2,0xf8,0x65,0x93,0xd8,0x8e,0x84,0xcb,0x6e,0x60,0xc9,0xae,0xa7,0x0d,0xc8,0x24,0x94,0x28,0x89,0xa9};
    static std::uint8_t addend54[32] = {0xc7,0x7c,0x98,0xe5,0x02,0x18,0x1b,0xe4,0x00,0xe9,0x3c,0x76,0x79,0xef,0x16,0x49,0x8c,0x90,0x94,0x48,0xfd,0xb4,0x97,0xe9,0xe8,0xa9,0xc6,0x31,0xbc,0x2c,0x13,0xff};
    static std::uint8_t sum54[32]    = {0x1f,0xe3,0xdc,0x66,0xc8,0x7f,0xde,0xa9,0x81,0xa6,0x7f,0x81,0x3c,0xe7,0x7b,0xdd,0x65,0x1f,0x19,0x15,0x6c,0x15,0x61,0x97,0x8f,0xb7,0x8e,0x56,0x50,0x54,0x9d,0xa9};
    sm2_fp_from_bytes(augend, augend54);
    sm2_fp_from_bytes(addend, addend54);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum54, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend55[32] = {0xe8,0x7e,0xd4,0x3d,0x2c,0x42,0x1f,0x85,0xd9,0x57,0xb1,0xc4,0x0c,0xba,0x85,0xa3,0x48,0x70,0xfb,0x99,0xeb,0x58,0x94,0x6f,0xfb,0x21,0x93,0x3a,0x8e,0xf2,0x88,0x04};
    static std::uint8_t addend55[32] = {0x1f,0x48,0x5d,0x52,0xa7,0x1e,0x5f,0x7a,0x07,0x5d,0x03,0x52,0x12,0x31,0x49,0x85,0x84,0xbd,0xf6,0x9b,0xea,0xc3,0x4e,0x67,0x33,0xf9,0x3e,0xf4,0xb9,0x07,0xbc,0x72};
    static std::uint8_t sum55[32]    = {0x07,0xc7,0x31,0x90,0xd3,0x60,0x7e,0xff,0xe0,0xb4,0xb5,0x16,0x1e,0xeb,0xcf,0x28,0xcd,0x2e,0xf2,0x36,0xd6,0x1b,0xe2,0xd6,0x2f,0x1a,0xd2,0x2f,0x47,0xfa,0x44,0x77};
    sm2_fp_from_bytes(augend, augend55);
    sm2_fp_from_bytes(addend, addend55);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum55, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend56[32] = {0x2f,0x3a,0x40,0x93,0x8d,0x85,0x23,0x50,0x09,0x80,0xf3,0x4b,0x41,0xdd,0x99,0x21,0x8d,0x70,0x8a,0x4e,0xd7,0x83,0xf3,0x55,0x11,0xbf,0x4f,0x90,0xe0,0x19,0x5c,0x4d};
    static std::uint8_t addend56[32] = {0x1f,0x7a,0x96,0x53,0xc0,0x32,0xb4,0xac,0x50,0x0b,0xc4,0xc2,0x92,0x3e,0xb1,0xf4,0x58,0x59,0x2e,0x8d,0x7e,0x34,0x34,0x33,0xaf,0xc4,0x7e,0x09,0x10,0xff,0x9f,0x07};
    static std::uint8_t sum56[32]    = {0x4e,0xb4,0xd6,0xe7,0x4d,0xb7,0xd7,0xfc,0x59,0x8c,0xb8,0x0d,0xd4,0x1c,0x4b,0x15,0xe5,0xc9,0xb8,0xdc,0x55,0xb8,0x27,0x88,0xc1,0x83,0xcd,0x99,0xf1,0x18,0xfb,0x54};
    sm2_fp_from_bytes(augend, augend56);
    sm2_fp_from_bytes(addend, addend56);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum56, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend57[32] = {0x30,0x50,0x58,0x5b,0xa6,0x9f,0x97,0xe6,0xb3,0x83,0x29,0x31,0x6b,0x44,0x20,0x63,0x90,0x62,0x0a,0x21,0x54,0xd1,0x08,0xa9,0xd6,0x8f,0x88,0xc1,0x0e,0x12,0x53,0xcf};
    static std::uint8_t addend57[32] = {0x91,0x48,0xf3,0x55,0x3e,0xf9,0x78,0x85,0x25,0xa4,0x16,0xcd,0xa3,0xed,0x2e,0x9f,0x6f,0x44,0x74,0x53,0xe5,0x0c,0x73,0x97,0xff,0x57,0x84,0x2a,0xb8,0xae,0xeb,0xf1};
    static std::uint8_t sum57[32]    = {0xc1,0x99,0x4b,0xb0,0xe5,0x99,0x10,0x6b,0xd9,0x27,0x3f,0xff,0x0f,0x31,0x4f,0x02,0xff,0xa6,0x7e,0x75,0x39,0xdd,0x7c,0x41,0xd5,0xe7,0x0c,0xeb,0xc6,0xc1,0x3f,0xc0};
    sm2_fp_from_bytes(augend, augend57);
    sm2_fp_from_bytes(addend, addend57);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum57, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend58[32] = {0x73,0xff,0x8d,0x1c,0xb0,0x74,0xd1,0xa4,0x0e,0x14,0xe8,0x95,0xfd,0x25,0x20,0x82,0x14,0x0c,0x9e,0x39,0x2a,0x2b,0x24,0x09,0x07,0xd2,0x78,0xbd,0xe1,0x71,0x31,0x92};
    static std::uint8_t addend58[32] = {0xb9,0x11,0x3b,0x0a,0x15,0xb2,0xd3,0xec,0xd9,0xb3,0x29,0xea,0x06,0xac,0xc0,0x61,0x84,0x72,0x28,0x05,0xe0,0x8f,0xcd,0x15,0x24,0x6d,0x44,0xfb,0xa8,0xc3,0x25,0x4f};
    static std::uint8_t sum58[32]    = {0x2d,0x10,0xc8,0x27,0xc6,0x27,0xa5,0x90,0xe7,0xc8,0x12,0x80,0x03,0xd1,0xe0,0xe3,0x98,0x7e,0xc6,0x40,0x0a,0xba,0xf1,0x1d,0x2c,0x3f,0xbd,0xb9,0x8a,0x34,0x56,0xe2};
    sm2_fp_from_bytes(augend, augend58);
    sm2_fp_from_bytes(addend, addend58);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum58, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend59[32] = {0xa3,0x61,0xb8,0xa0,0xf7,0xe9,0x8a,0x36,0x81,0x01,0xb1,0x6f,0x96,0xcd,0xb6,0xe3,0xca,0x80,0xe0,0x2a,0xa5,0x82,0x80,0x2d,0xe1,0x91,0x0e,0x38,0x9b,0xbc,0x6d,0x78};
    static std::uint8_t addend59[32] = {0x44,0x1a,0xf0,0x62,0xca,0xd1,0x1c,0xa8,0x27,0xfc,0x3e,0xbf,0xea,0x26,0x49,0xc2,0xd6,0xf0,0xa6,0x09,0x5f,0x54,0xe4,0x29,0x15,0xc0,0xac,0x3e,0xa4,0x3f,0xf0,0xc2};
    static std::uint8_t sum59[32]    = {0xe7,0x7c,0xa9,0x03,0xc2,0xba,0xa6,0xde,0xa8,0xfd,0xf0,0x2f,0x80,0xf4,0x00,0xa6,0xa1,0x71,0x86,0x34,0x04,0xd7,0x64,0x56,0xf7,0x51,0xba,0x77,0x3f,0xfc,0x5e,0x3a};
    sm2_fp_from_bytes(augend, augend59);
    sm2_fp_from_bytes(addend, addend59);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum59, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend60[32] = {0x42,0x4d,0x04,0x03,0xcd,0x50,0x24,0x03,0x7a,0x8c,0x85,0xbc,0xd6,0xca,0x81,0x25,0x8b,0x4c,0x80,0xb5,0xe5,0x3e,0x21,0x4e,0x44,0x60,0x1d,0xfc,0x88,0xf2,0x9a,0x20};
    static std::uint8_t addend60[32] = {0x35,0x92,0xd7,0x98,0xfa,0x9c,0x6d,0xf1,0x25,0xdd,0x7b,0x44,0x67,0x67,0xae,0xd9,0x77,0x6a,0xe5,0x74,0x5a,0xcf,0xea,0xa5,0x85,0x7d,0x3e,0xea,0x9e,0x9e,0x54,0xcd};
    static std::uint8_t sum60[32]    = {0x77,0xdf,0xdb,0x9c,0xc7,0xec,0x91,0xf4,0xa0,0x6a,0x01,0x01,0x3e,0x32,0x2f,0xff,0x02,0xb7,0x66,0x2a,0x40,0x0e,0x0b,0xf3,0xc9,0xdd,0x5c,0xe7,0x27,0x90,0xee,0xed};
    sm2_fp_from_bytes(augend, augend60);
    sm2_fp_from_bytes(addend, addend60);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum60, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend61[32] = {0xec,0x19,0xb8,0x87,0x8a,0x49,0x21,0x5d,0x00,0x59,0x96,0xbd,0xc6,0x37,0xf5,0x37,0x9a,0xac,0xdd,0xbf,0x5d,0xd6,0x4d,0xde,0x6c,0x43,0xfc,0x7d,0x4f,0x98,0xed,0x35};
    static std::uint8_t addend61[32] = {0xb7,0xec,0x1d,0x1f,0xf5,0x83,0x7c,0x6b,0xbf,0x41,0x22,0xed,0x94,0xc6,0xb3,0xe0,0x96,0x60,0x1d,0x9b,0x50,0x0c,0xdb,0x95,0x12,0x25,0x74,0x30,0x81,0xc7,0x60,0x4b};
    static std::uint8_t sum61[32]    = {0xa4,0x05,0xd5,0xa8,0x7f,0xcc,0x9d,0xc8,0xbf,0x9a,0xb9,0xab,0x5a,0xfe,0xa9,0x18,0x31,0x0c,0xfb,0x5b,0xad,0xe3,0x29,0x72,0x7e,0x69,0x70,0xad,0xd1,0x60,0x4d,0x81};
    sm2_fp_from_bytes(augend, augend61);
    sm2_fp_from_bytes(addend, addend61);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum61, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend62[32] = {0x0a,0x67,0x28,0x7a,0x20,0x27,0x41,0xeb,0x91,0x9f,0x3e,0xf0,0x51,0xb7,0x84,0xa6,0xf8,0x01,0x8f,0xa8,0xbf,0x65,0x3b,0xe8,0x77,0x43,0x74,0xcf,0x88,0x56,0x0f,0x3b};
    static std::uint8_t addend62[32] = {0x0d,0x26,0x9e,0x22,0x64,0xdf,0x6b,0x20,0xf3,0x77,0xed,0x58,0xba,0x6c,0x1c,0x2f,0x6f,0x70,0xe1,0x0a,0x0e,0x99,0xec,0xd3,0x7a,0xd7,0x21,0x02,0x79,0x52,0xf9,0x6e};
    static std::uint8_t sum62[32]    = {0x17,0x8d,0xc6,0x9c,0x85,0x06,0xad,0x0c,0x85,0x17,0x2c,0x49,0x0c,0x23,0xa0,0xd6,0x67,0x72,0x70,0xb2,0xcd,0xff,0x28,0xbb,0xf2,0x1a,0x95,0xd2,0x01,0xa9,0x08,0xa9};
    sm2_fp_from_bytes(augend, augend62);
    sm2_fp_from_bytes(addend, addend62);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum62, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend63[32] = {0x08,0x9c,0x6b,0xec,0xa2,0x5f,0xe5,0x05,0x00,0x8f,0xe3,0x95,0x2f,0xc0,0x9e,0x7c,0x97,0xb5,0x57,0xa1,0xc8,0x9b,0xc8,0x5c,0x5f,0x70,0x9c,0xf2,0xdf,0x34,0xea,0xcf};
    static std::uint8_t addend63[32] = {0xc0,0x45,0xb6,0x01,0xd6,0xa2,0xfc,0x82,0x8c,0x62,0xe9,0x26,0xcd,0xa0,0x9a,0xe4,0xd5,0x28,0x32,0xa7,0x6e,0xd9,0x67,0x11,0xdd,0x66,0x22,0xc7,0xc1,0xa6,0xa4,0xb4};
    static std::uint8_t sum63[32]    = {0xc8,0xe2,0x21,0xee,0x79,0x02,0xe1,0x87,0x8c,0xf2,0xcc,0xbb,0xfd,0x61,0x39,0x61,0x6c,0xdd,0x8a,0x49,0x37,0x75,0x2f,0x6e,0x3c,0xd6,0xbf,0xba,0xa0,0xdb,0x8f,0x83};
    sm2_fp_from_bytes(augend, augend63);
    sm2_fp_from_bytes(addend, addend63);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum63, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend64[32] = {0xf7,0x2a,0x9b,0xfa,0x7f,0x75,0x46,0xe9,0x79,0x0c,0xa7,0x3d,0x5a,0xdd,0x80,0x07,0xc5,0x6b,0xd7,0x9e,0xcd,0xa8,0x78,0xec,0x08,0x71,0x2b,0x4f,0x13,0x51,0xba,0x83};
    static std::uint8_t addend64[32] = {0x1d,0xe1,0x2a,0x24,0x31,0x9d,0xff,0x31,0xb2,0x70,0xd7,0x89,0x99,0x5a,0xee,0x17,0x6b,0xbf,0xdc,0xac,0x29,0xb1,0x53,0x7f,0xab,0xcb,0x10,0xf8,0xc3,0x0c,0x47,0x85};
    static std::uint8_t sum64[32]    = {0x15,0x0b,0xc6,0x1f,0xb1,0x13,0x46,0x1b,0x2b,0x7d,0x7e,0xc6,0xf4,0x38,0x6e,0x1f,0x31,0x2b,0xb4,0x4b,0xf7,0x59,0xcc,0x6a,0xb4,0x3c,0x3c,0x47,0xd6,0x5e,0x02,0x09};
    sm2_fp_from_bytes(augend, augend64);
    sm2_fp_from_bytes(addend, addend64);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum64, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend65[32] = {0xc4,0xad,0xd7,0xd8,0x03,0x2b,0x46,0x53,0x05,0xee,0xeb,0xcf,0x6b,0x5f,0x6e,0x2e,0xfc,0x7c,0xd8,0xe8,0x55,0x53,0x31,0x58,0x3b,0xe6,0x23,0x5d,0x5f,0xdd,0x58,0x36};
    static std::uint8_t addend65[32] = {0x1a,0x16,0xfe,0x41,0xf4,0x91,0x8f,0x28,0xa1,0xb7,0xb0,0xd8,0x95,0xe2,0xce,0xe9,0xda,0xdf,0x4d,0xb3,0xb9,0xff,0x40,0x57,0xa0,0x59,0x8d,0x6e,0x38,0x6a,0x5e,0x5b};
    static std::uint8_t sum65[32]    = {0xde,0xc4,0xd6,0x19,0xf7,0xbc,0xd5,0x7b,0xa7,0xa6,0x9c,0xa8,0x01,0x42,0x3d,0x18,0xd7,0x5c,0x26,0x9c,0x0f,0x52,0x71,0xaf,0xdc,0x3f,0xb0,0xcb,0x98,0x47,0xb6,0x91};
    sm2_fp_from_bytes(augend, augend65);
    sm2_fp_from_bytes(addend, addend65);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum65, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend66[32] = {0xeb,0xf3,0x18,0x9a,0xca,0xe9,0x97,0xa2,0xc5,0xb0,0xba,0x1e,0x9a,0xce,0x76,0x38,0x7a,0xa3,0x05,0x85,0x61,0xbe,0x57,0x71,0x74,0xcc,0xc6,0x8e,0xed,0x72,0xec,0xf0};
    static std::uint8_t addend66[32] = {0x2a,0x77,0x00,0x23,0x85,0x2d,0x56,0x0b,0xf9,0x4b,0x33,0x51,0xcf,0xb6,0x36,0xf6,0xa0,0xa7,0x88,0x94,0x68,0x23,0xd9,0xe9,0x57,0x95,0x78,0xda,0x25,0x6f,0xd1,0x60};
    static std::uint8_t sum66[32]    = {0x16,0x6a,0x18,0xbf,0x50,0x16,0xed,0xae,0xbe,0xfb,0xed,0x70,0x6a,0x84,0xad,0x2f,0x1b,0x4a,0x8e,0x1a,0xc9,0xe2,0x31,0x59,0xcc,0x62,0x3f,0x69,0x12,0xe2,0xbe,0x51};
    sm2_fp_from_bytes(augend, augend66);
    sm2_fp_from_bytes(addend, addend66);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum66, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend67[32] = {0xee,0x29,0xca,0xe8,0x35,0x30,0x37,0x59,0x6a,0xbe,0xc6,0xbb,0xcf,0x49,0x00,0x47,0x07,0x6c,0x91,0xa8,0x49,0x65,0xb9,0x20,0x95,0x03,0x82,0x75,0x68,0xb3,0xd2,0x6b};
    static std::uint8_t addend67[32] = {0x7f,0x3f,0xe3,0x04,0x00,0xf7,0x4c,0x40,0xd3,0xca,0xdc,0x75,0xb3,0xb3,0x5d,0x18,0xb1,0xdf,0xf9,0xf2,0x52,0x58,0x3e,0xab,0x23,0xb9,0x54,0x34,0xda,0x87,0x78,0xaa};
    static std::uint8_t sum67[32]    = {0x6d,0x69,0xad,0xed,0x36,0x27,0x83,0x9a,0x3e,0x89,0xa3,0x31,0x82,0xfc,0x5d,0x5f,0xb9,0x4c,0x8b,0x9b,0x9b,0xbd,0xf7,0xca,0xb8,0xbc,0xd6,0xaa,0x43,0x3b,0x4b,0x16};
    sm2_fp_from_bytes(augend, augend67);
    sm2_fp_from_bytes(addend, addend67);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum67, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend68[32] = {0x3d,0x2c,0x90,0x3c,0xc2,0x58,0x6b,0xab,0xba,0x5d,0x06,0x48,0xc6,0x73,0xd4,0x92,0xc7,0xbc,0xd0,0x1b,0xd5,0x4a,0x0a,0x62,0x3d,0x23,0x09,0x0a,0x5c,0x18,0x7f,0x8e};
    static std::uint8_t addend68[32] = {0xf0,0xb7,0xe0,0x33,0x78,0x19,0x6f,0x64,0x2f,0x30,0x45,0x27,0xc1,0x4b,0x6e,0xf5,0x48,0x00,0x84,0x84,0x14,0x93,0x69,0xc6,0x2a,0xf7,0x42,0xd3,0xb5,0x09,0x1d,0x7d};
    static std::uint8_t sum68[32]    = {0x2d,0xe4,0x70,0x71,0x3a,0x71,0xdb,0x0f,0xe9,0x8d,0x4b,0x70,0x87,0xbf,0x43,0x88,0x0f,0xbd,0x54,0xa0,0xe9,0xdd,0x74,0x27,0x68,0x1a,0x4b,0xde,0x11,0x21,0x9d,0x0c};
    sm2_fp_from_bytes(augend, augend68);
    sm2_fp_from_bytes(addend, addend68);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum68, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend69[32] = {0x50,0x3b,0xa3,0x35,0x8f,0x6b,0x64,0x75,0xf1,0xa1,0x38,0x72,0x38,0x7a,0xc8,0xc8,0x7f,0xaa,0x34,0xb0,0x20,0xe5,0xe6,0x9e,0x09,0xa5,0x3c,0x2f,0xd0,0x44,0x45,0xc7};
    static std::uint8_t addend69[32] = {0xd8,0xbf,0x12,0xbc,0x1a,0x60,0x1c,0xf0,0xc9,0xc3,0xa8,0xce,0x1b,0xd7,0x88,0x7a,0x41,0xdd,0x57,0x50,0xf2,0xb8,0x51,0x69,0x20,0xce,0x89,0x59,0x77,0xd6,0xd9,0x62};
    static std::uint8_t sum69[32]    = {0x28,0xfa,0xb5,0xf2,0xa9,0xcb,0x81,0x66,0xbb,0x64,0xe1,0x40,0x54,0x52,0x51,0x42,0xc1,0x87,0x8c,0x02,0x13,0x9e,0x38,0x06,0x2a,0x73,0xc5,0x89,0x48,0x1b,0x1f,0x2a};
    sm2_fp_from_bytes(augend, augend69);
    sm2_fp_from_bytes(addend, addend69);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum69, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend70[32] = {0x01,0xb8,0x28,0x5a,0x28,0xa0,0x2c,0x86,0x40,0x88,0x27,0x51,0x97,0x41,0x9e,0x2a,0x7f,0xac,0x35,0xeb,0xe9,0xb7,0x01,0x5c,0x99,0xe3,0x9d,0xf5,0x97,0x60,0x6e,0x94};
    static std::uint8_t addend70[32] = {0x48,0x60,0xbc,0x46,0xe4,0x48,0x37,0x97,0xf2,0x73,0xa9,0x4c,0xf6,0xb2,0x1e,0x5d,0xd5,0xe8,0x43,0xbc,0xa6,0xec,0x6e,0x6d,0x8a,0xc9,0x72,0x43,0xe1,0x22,0xf9,0x98};
    static std::uint8_t sum70[32]    = {0x4a,0x18,0xe4,0xa1,0x0c,0xe8,0x64,0x1e,0x32,0xfb,0xd0,0x9e,0x8d,0xf3,0xbc,0x88,0x55,0x94,0x79,0xa8,0x90,0xa3,0x6f,0xca,0x24,0xad,0x10,0x39,0x78,0x83,0x68,0x2c};
    sm2_fp_from_bytes(augend, augend70);
    sm2_fp_from_bytes(addend, addend70);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum70, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend71[32] = {0x0d,0x66,0x58,0x1a,0x11,0x17,0xbc,0xbe,0xe2,0x3c,0x02,0xd2,0x27,0x31,0x3e,0x32,0xe5,0xcb,0x8d,0xe2,0x52,0x91,0xb7,0xd5,0x2f,0xe9,0xc7,0x80,0x39,0xf8,0xfb,0x2b};
    static std::uint8_t addend71[32] = {0xdb,0xfc,0x35,0x58,0xfc,0xc6,0xef,0xdc,0x06,0x2f,0xa7,0xe1,0x79,0xb8,0xcc,0x69,0xf8,0x83,0xdc,0x4b,0x85,0xe8,0x21,0x44,0xb7,0x71,0xaf,0x6a,0x80,0x7f,0xcf,0x61};
    static std::uint8_t sum71[32]    = {0xe9,0x62,0x8d,0x73,0x0d,0xde,0xac,0x9a,0xe8,0x6b,0xaa,0xb3,0xa0,0xea,0x0a,0x9c,0xde,0x4f,0x6a,0x2d,0xd8,0x79,0xd9,0x19,0xe7,0x5b,0x76,0xea,0xba,0x78,0xca,0x8c};
    sm2_fp_from_bytes(augend, augend71);
    sm2_fp_from_bytes(addend, addend71);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum71, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend72[32] = {0x42,0xd2,0x5e,0xa9,0x94,0xa1,0x2a,0x29,0x34,0xef,0x98,0x2a,0xb7,0xb8,0x88,0x48,0xd3,0x63,0xc2,0xd8,0xde,0x3c,0xaa,0x62,0x51,0x2d,0x61,0x26,0x33,0xdb,0x54,0x07};
    static std::uint8_t addend72[32] = {0xeb,0x67,0x8e,0x0f,0x29,0xb1,0xc3,0xfe,0x8e,0x6f,0x59,0xd6,0x09,0x63,0x3e,0x8b,0x39,0x23,0x9a,0xdf,0xdd,0x3a,0xfe,0x49,0xc3,0xb7,0x17,0xac,0xd1,0xd8,0x59,0xe4};
    static std::uint8_t sum72[32]    = {0x2e,0x39,0xec,0xb9,0xbe,0x52,0xee,0x27,0xc3,0x5e,0xf2,0x00,0xc1,0x1b,0xc6,0xd4,0x0c,0x87,0x5d,0xb9,0xbb,0x77,0xa8,0xab,0x14,0xe4,0x78,0xd3,0x05,0xb3,0xad,0xec};
    sm2_fp_from_bytes(augend, augend72);
    sm2_fp_from_bytes(addend, addend72);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum72, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend73[32] = {0xbe,0xe0,0xc6,0x7a,0xb0,0xd9,0x23,0x41,0x31,0x50,0x78,0xbd,0x5c,0x43,0x96,0x39,0x88,0x61,0xd6,0x8a,0x03,0x33,0xf8,0xd9,0xa4,0x83,0x35,0xd1,0xa1,0x10,0x39,0x1b};
    static std::uint8_t addend73[32] = {0x97,0x9d,0x15,0x14,0xf2,0x2c,0xfb,0xe5,0xa4,0xe6,0x22,0x4d,0xdd,0xcc,0x45,0xd3,0x22,0x9a,0x26,0x95,0x8a,0x53,0xde,0x31,0xad,0x17,0xb6,0x51,0x29,0xfb,0x65,0x9a};
    static std::uint8_t sum73[32]    = {0x56,0x7d,0xdb,0x90,0xa3,0x06,0x1f,0x26,0xd6,0x36,0x9b,0x0b,0x3a,0x0f,0xdc,0x0c,0xaa,0xfb,0xfd,0x20,0x8d,0x87,0xd7,0x0a,0x51,0x9a,0xec,0x22,0xcb,0x0b,0x9e,0xb6};
    sm2_fp_from_bytes(augend, augend73);
    sm2_fp_from_bytes(addend, addend73);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum73, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend74[32] = {0x12,0xcf,0x8d,0x8a,0x23,0x88,0x1f,0xd7,0xdf,0x9f,0x9e,0x90,0x14,0xfa,0xb5,0x43,0x32,0x28,0x3d,0xdd,0x23,0xa6,0xb7,0xba,0xf1,0xe9,0x3c,0x42,0xa3,0xfe,0x13,0x98};
    static std::uint8_t addend74[32] = {0x69,0xc8,0x80,0x81,0x81,0x36,0x7a,0xb7,0xcc,0x40,0xc9,0x99,0x3d,0x4a,0xe5,0x0b,0xb3,0x2e,0x17,0xaa,0x11,0x57,0x1d,0x6c,0x9d,0x63,0x69,0x2e,0xd8,0xaf,0x87,0x50};
    static std::uint8_t sum74[32]    = {0x7c,0x98,0x0e,0x0b,0xa4,0xbe,0x9a,0x8f,0xab,0xe0,0x68,0x29,0x52,0x45,0x9a,0x4e,0xe5,0x56,0x55,0x87,0x34,0xfd,0xd5,0x27,0x8f,0x4c,0xa5,0x71,0x7c,0xad,0x9a,0xe8};
    sm2_fp_from_bytes(augend, augend74);
    sm2_fp_from_bytes(addend, addend74);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum74, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend75[32] = {0x93,0xfa,0x96,0x0f,0xc0,0xe0,0x34,0x75,0xeb,0x8d,0xe0,0x3e,0x00,0xb5,0x41,0xaa,0xb3,0x5a,0x47,0x87,0x2b,0x00,0x97,0x59,0xda,0x5b,0xfd,0x25,0x46,0x8f,0x8f,0x2a};
    static std::uint8_t addend75[32] = {0x1b,0x22,0xa4,0x62,0xe5,0xc5,0xcc,0x42,0x64,0x45,0xb3,0x8f,0xce,0x2f,0xf3,0x31,0xbf,0x7a,0x56,0xc9,0xaa,0xff,0x00,0xc6,0x52,0xb6,0x7d,0xd6,0xbe,0xa5,0xa5,0x72};
    static std::uint8_t sum75[32]    = {0xaf,0x1d,0x3a,0x72,0xa6,0xa6,0x00,0xb8,0x4f,0xd3,0x93,0xcd,0xce,0xe5,0x34,0xdc,0x72,0xd4,0x9e,0x50,0xd5,0xff,0x98,0x20,0x2d,0x12,0x7a,0xfc,0x05,0x35,0x34,0x9c};
    sm2_fp_from_bytes(augend, augend75);
    sm2_fp_from_bytes(addend, addend75);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum75, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend76[32] = {0x52,0xcc,0xa8,0x60,0x95,0xcc,0xe7,0xb9,0xf6,0x43,0x90,0xd3,0xa2,0x58,0x39,0xa3,0xeb,0x25,0xed,0x3e,0xc7,0x3a,0xee,0x9d,0x10,0xce,0x09,0xd5,0x51,0xfe,0x6c,0x35};
    static std::uint8_t addend76[32] = {0x8f,0x80,0xa0,0xec,0xaf,0xfa,0x13,0x9b,0x5c,0x16,0x8c,0x00,0x19,0xfd,0x64,0x3c,0x5b,0x41,0xcc,0xd7,0x7f,0x2f,0x60,0xfb,0x6e,0x2f,0x08,0x9b,0xbe,0x4d,0x18,0xda};
    static std::uint8_t sum76[32]    = {0xe2,0x4d,0x49,0x4d,0x45,0xc6,0xfb,0x55,0x52,0x5a,0x1c,0xd3,0xbc,0x55,0x9d,0xe0,0x46,0x67,0xba,0x16,0x46,0x6a,0x4f,0x98,0x7e,0xfd,0x12,0x71,0x10,0x4b,0x85,0x0f};
    sm2_fp_from_bytes(augend, augend76);
    sm2_fp_from_bytes(addend, addend76);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum76, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend77[32] = {0xb3,0x14,0x28,0x0f,0x9a,0x41,0x9b,0x0f,0x8f,0x3e,0x7e,0xd7,0x1e,0xd8,0xa6,0x8c,0xec,0xcf,0x43,0x55,0x03,0x58,0x8c,0x57,0x8e,0x48,0x5f,0xf0,0x08,0x64,0x2d,0xc7};
    static std::uint8_t addend77[32] = {0xe1,0x70,0xa6,0xd8,0xb4,0xb0,0xab,0xa5,0x24,0x3d,0xf0,0x3d,0x7c,0x76,0x97,0x1e,0xa9,0xc3,0x92,0x59,0xbf,0xa8,0xc0,0x7a,0x3a,0x70,0xf2,0x65,0x15,0xa1,0x7f,0x59};
    static std::uint8_t sum77[32]    = {0x94,0x84,0xce,0xe9,0x4e,0xf2,0x46,0xb4,0xb3,0x7c,0x6f,0x14,0x9b,0x4f,0x3d,0xab,0x96,0x92,0xd5,0xaf,0xc3,0x01,0x4c,0xd0,0xc8,0xb9,0x52,0x55,0x1e,0x05,0xad,0x21};
    sm2_fp_from_bytes(augend, augend77);
    sm2_fp_from_bytes(addend, addend77);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum77, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend78[32] = {0x4b,0x8c,0x0a,0xa6,0xc9,0x70,0xf2,0x7e,0xa6,0x38,0xc9,0x6f,0x2e,0xd8,0xdb,0xdb,0xd8,0x06,0xe3,0x2b,0x77,0x2e,0x8f,0x95,0xdf,0xd5,0xb4,0x19,0x27,0x70,0x7b,0xa4};
    static std::uint8_t addend78[32] = {0xd2,0x8a,0xec,0xd2,0x1c,0x56,0x9d,0xb5,0xfb,0xc7,0xb4,0x15,0xb5,0xc7,0x80,0x62,0xd3,0x71,0xec,0x14,0x72,0x3b,0x97,0x77,0x55,0xcb,0x62,0x36,0xb5,0x72,0x1f,0x6e};
    static std::uint8_t sum78[32]    = {0x1e,0x16,0xf7,0x79,0xe5,0xc7,0x90,0x34,0xa2,0x00,0x7d,0x84,0xe4,0xa0,0x5c,0x3e,0xab,0x78,0xcf,0x40,0xe9,0x6a,0x27,0x0c,0x35,0xa1,0x16,0x4f,0xdc,0xe2,0x9b,0x13};
    sm2_fp_from_bytes(augend, augend78);
    sm2_fp_from_bytes(addend, addend78);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum78, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend79[32] = {0xaa,0x84,0x88,0x74,0xa2,0x5e,0x01,0x1b,0x07,0x15,0xd5,0x80,0xcd,0x22,0x0a,0x61,0xce,0xa0,0xcc,0x49,0x29,0x15,0xaf,0xd7,0x21,0x4d,0x85,0xeb,0xa8,0xbb,0x7a,0x0f};
    static std::uint8_t addend79[32] = {0x59,0xc7,0xd4,0x43,0x22,0x1d,0x88,0x89,0xe6,0x17,0xd0,0x80,0xc7,0xbf,0x9d,0x4b,0x68,0x28,0xbe,0xd4,0x36,0xe6,0xd9,0xef,0x7f,0x55,0xd9,0x59,0x1b,0x56,0x9d,0xad};
    static std::uint8_t sum79[32]    = {0x04,0x4c,0x5c,0xb8,0xc4,0x7b,0x89,0xa4,0xed,0x2d,0xa6,0x01,0x94,0xe1,0xa7,0xad,0x36,0xc9,0x8b,0x1e,0x5f,0xfc,0x89,0xc5,0xa0,0xa3,0x5f,0x44,0xc4,0x12,0x17,0xbd};
    sm2_fp_from_bytes(augend, augend79);
    sm2_fp_from_bytes(addend, addend79);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum79, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend80[32] = {0xa7,0x56,0x63,0x9b,0xff,0x79,0x43,0x6b,0x33,0xff,0xdb,0xec,0x15,0xe3,0x33,0x6a,0xc2,0x34,0x2d,0x70,0x9c,0xd6,0x40,0x22,0x02,0x8d,0xb8,0xde,0x5b,0xeb,0xd1,0xab};
    static std::uint8_t addend80[32] = {0x9e,0x17,0xe0,0x0e,0x1f,0x71,0xcf,0xf1,0x4f,0x92,0xd3,0x0c,0x03,0xa9,0x4d,0xde,0xb7,0xf5,0xb1,0x18,0xf1,0xf1,0xa4,0xe3,0xe3,0x95,0x57,0xa3,0x65,0xac,0x85,0x64};
    static std::uint8_t sum80[32]    = {0x45,0x6e,0x43,0xab,0x1e,0xeb,0x13,0x5c,0x83,0x92,0xae,0xf8,0x19,0x8c,0x81,0x49,0x7a,0x29,0xde,0x8a,0x8e,0xc7,0xe5,0x04,0xe6,0x23,0x10,0x81,0xc1,0x98,0x57,0x10};
    sm2_fp_from_bytes(augend, augend80);
    sm2_fp_from_bytes(addend, addend80);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum80, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend81[32] = {0x00,0x72,0xe7,0x99,0x8e,0xeb,0xd1,0x81,0x5a,0xfd,0xa2,0x71,0xcd,0x88,0x8b,0x8a,0x92,0xcd,0xdf,0x1d,0x08,0x1f,0x65,0x0b,0x2d,0x20,0x34,0xdb,0x08,0xa9,0xfb,0x71};
    static std::uint8_t addend81[32] = {0xbf,0xdd,0xa3,0xed,0xb7,0xf8,0x38,0xa6,0x12,0xb4,0xd0,0xc0,0xb6,0x6a,0xe3,0x46,0x9c,0x41,0x0c,0x6f,0xa3,0xd2,0x7a,0x41,0xf4,0x2d,0x48,0xef,0x7d,0x2b,0x4f,0x37};
    static std::uint8_t sum81[32]    = {0xc0,0x50,0x8b,0x87,0x46,0xe4,0x0a,0x27,0x6d,0xb2,0x73,0x32,0x83,0xf3,0x6e,0xd1,0x2f,0x0e,0xeb,0x8c,0xab,0xf1,0xdf,0x4d,0x21,0x4d,0x7d,0xca,0x85,0xd5,0x4a,0xa8};
    sm2_fp_from_bytes(augend, augend81);
    sm2_fp_from_bytes(addend, addend81);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum81, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend82[32] = {0x4d,0x6a,0x44,0x94,0x5f,0x31,0x25,0x3e,0x40,0xa6,0x80,0x0a,0x62,0xbf,0xc3,0x79,0x57,0x84,0x74,0xc9,0x53,0x53,0x7d,0xfd,0x7b,0x09,0x41,0x82,0x42,0xc0,0xe5,0x06};
    static std::uint8_t addend82[32] = {0x5d,0x54,0xe7,0x0a,0xf9,0x1a,0x74,0x49,0x99,0x6d,0x49,0xb3,0x0e,0x65,0x7d,0x24,0xb9,0x08,0x43,0x04,0xf3,0xca,0xe0,0x6b,0x3d,0x19,0xc1,0x8b,0x72,0xf8,0x41,0xf6};
    static std::uint8_t sum82[32]    = {0xaa,0xbf,0x2b,0x9f,0x58,0x4b,0x99,0x87,0xda,0x13,0xc9,0xbd,0x71,0x25,0x40,0x9e,0x10,0x8c,0xb7,0xce,0x47,0x1e,0x5e,0x68,0xb8,0x23,0x03,0x0d,0xb5,0xb9,0x26,0xfc};
    sm2_fp_from_bytes(augend, augend82);
    sm2_fp_from_bytes(addend, addend82);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum82, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend83[32] = {0x33,0xfd,0x45,0xb4,0xeb,0xbf,0xaa,0x5d,0x69,0x3b,0x9e,0xaa,0x56,0x35,0x26,0x18,0xd3,0xd7,0x13,0x62,0xdc,0xd1,0x00,0x8a,0xab,0xa5,0xc9,0xa7,0x13,0x4b,0xbd,0xfa};
    static std::uint8_t addend83[32] = {0x53,0x19,0x38,0x57,0xcd,0xd8,0x1e,0xd7,0x01,0xc4,0x31,0x8d,0x08,0xb1,0x27,0x34,0x14,0xac,0xa6,0x59,0xe4,0x48,0x49,0xbc,0x86,0x1a,0x84,0x43,0x56,0x57,0x18,0xfd};
    static std::uint8_t sum83[32]    = {0x87,0x16,0x7e,0x0c,0xb9,0x97,0xc9,0x34,0x6a,0xff,0xd0,0x37,0x5e,0xe6,0x4d,0x4c,0xe8,0x83,0xb9,0xbc,0xc1,0x19,0x4a,0x47,0x31,0xc0,0x4d,0xea,0x69,0xa2,0xd6,0xf7};
    sm2_fp_from_bytes(augend, augend83);
    sm2_fp_from_bytes(addend, addend83);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum83, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend84[32] = {0xc4,0x3f,0xf9,0x0e,0xf7,0x07,0x75,0x82,0xe7,0x1b,0xa0,0xaa,0xf4,0x35,0xbf,0xc4,0x2b,0x6a,0xd0,0xc0,0x42,0x7c,0x1e,0x24,0x2b,0x14,0xb0,0x2f,0x56,0x2b,0x50,0x35};
    static std::uint8_t addend84[32] = {0xf1,0xb8,0x1e,0xd9,0xaf,0x75,0x35,0x43,0x39,0x2d,0x07,0xfa,0x55,0x5a,0xa5,0x00,0x72,0x61,0x48,0x7b,0x0e,0x11,0x96,0x37,0x90,0xfc,0x53,0x1d,0xc4,0xdd,0xf3,0xb1};
    static std::uint8_t sum84[32]    = {0xb5,0xf8,0x17,0xe9,0xa6,0x7c,0xaa,0xc6,0x20,0x48,0xa8,0xa5,0x49,0x90,0x64,0xc4,0x9d,0xcc,0x19,0x3c,0x50,0x8d,0xb4,0x5a,0xbc,0x11,0x03,0x4d,0x1b,0x09,0x43,0xe7};
    sm2_fp_from_bytes(augend, augend84);
    sm2_fp_from_bytes(addend, addend84);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum84, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend85[32] = {0x3e,0x4e,0x4d,0x8a,0xed,0xad,0xa7,0xda,0x3a,0xc9,0x74,0x70,0x3b,0x62,0x4f,0x4c,0xee,0x08,0xe6,0xc4,0xb9,0xbb,0xfc,0x75,0x23,0x37,0xd0,0xfa,0x98,0xa0,0xe5,0x83};
    static std::uint8_t addend85[32] = {0xf4,0x0b,0xca,0xde,0x17,0x22,0x3b,0x8d,0x80,0xb6,0x35,0xae,0x0b,0xfd,0xe9,0x7d,0xe8,0x00,0x16,0x61,0xeb,0x46,0xd9,0xcd,0xa0,0x82,0x94,0x92,0xe8,0xe9,0xfe,0x65};
    static std::uint8_t sum85[32]    = {0x32,0x5a,0x18,0x6a,0x04,0xcf,0xe3,0x67,0xbb,0x7f,0xaa,0x1e,0x47,0x60,0x38,0xca,0xd6,0x08,0xfd,0x27,0xa5,0x02,0xd6,0x41,0xc3,0xba,0x65,0x8d,0x81,0x8a,0xe3,0xe9};
    sm2_fp_from_bytes(augend, augend85);
    sm2_fp_from_bytes(addend, addend85);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum85, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend86[32] = {0x9a,0xed,0x56,0x1e,0x61,0xcb,0x11,0x63,0x56,0x0a,0xee,0x76,0x79,0x1b,0x7f,0x5b,0x52,0x6f,0xa1,0x8c,0x36,0x0c,0x8a,0xd0,0xeb,0x9b,0x3b,0xd6,0xca,0xfa,0x04,0xe5};
    static std::uint8_t addend86[32] = {0x32,0x72,0xa5,0x27,0x9c,0x87,0x6d,0xb2,0x94,0x5e,0x3d,0x49,0xf9,0x5e,0x0d,0x38,0xbc,0x07,0x56,0x50,0x24,0x8b,0xf3,0x5c,0x1a,0x0e,0x3c,0xde,0xf9,0xb7,0xa2,0x7e};
    static std::uint8_t sum86[32]    = {0xcd,0x5f,0xfb,0x45,0xfe,0x52,0x7f,0x15,0xea,0x69,0x2b,0xc0,0x72,0x79,0x8c,0x94,0x0e,0x76,0xf7,0xdc,0x5a,0x98,0x7e,0x2d,0x05,0xa9,0x78,0xb5,0xc4,0xb1,0xa7,0x63};
    sm2_fp_from_bytes(augend, augend86);
    sm2_fp_from_bytes(addend, addend86);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum86, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend87[32] = {0xfd,0x34,0x61,0x3a,0x83,0x91,0xee,0xa3,0x3a,0x00,0xab,0xa4,0x3b,0x10,0xd8,0xe7,0x62,0xa7,0xf8,0xca,0x37,0xcd,0xc6,0x88,0x7d,0xc3,0x05,0xff,0x90,0x02,0x16,0x54};
    static std::uint8_t addend87[32] = {0xc6,0x5c,0xfb,0x59,0x52,0x58,0x8d,0x9a,0x49,0x1c,0x0e,0x72,0x0c,0x0a,0xc4,0x13,0xb0,0xd1,0x0f,0x70,0x66,0xa3,0x21,0x24,0xef,0xe3,0x14,0xdd,0x28,0x83,0x04,0x41};
    static std::uint8_t sum87[32]    = {0xc3,0x91,0x5c,0x94,0xd5,0xea,0x7c,0x3d,0x83,0x1c,0xba,0x16,0x47,0x1b,0x9c,0xfb,0x13,0x79,0x08,0x3b,0x9e,0x70,0xe7,0xac,0x6d,0xa6,0x1a,0xdc,0xb8,0x85,0x1a,0x96};
    sm2_fp_from_bytes(augend, augend87);
    sm2_fp_from_bytes(addend, addend87);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum87, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend88[32] = {0xde,0x3f,0x49,0x8f,0x08,0x54,0x02,0x99,0xc9,0x60,0xa4,0x5e,0x5f,0xea,0xd9,0x0e,0x80,0x5a,0x2e,0x21,0x05,0x26,0x5c,0xe7,0x1a,0x46,0x8a,0x03,0xdd,0xe9,0x64,0xe1};
    static std::uint8_t addend88[32] = {0xbd,0x6e,0x1d,0x58,0xb9,0xe1,0xce,0x7c,0x68,0x82,0x31,0x02,0xb6,0x12,0x13,0x2c,0xc8,0x5c,0xcb,0xe6,0x2b,0xcc,0xa0,0x06,0x4b,0x9d,0x3f,0xf6,0x12,0x94,0x6b,0x08};
    static std::uint8_t sum88[32]    = {0x9b,0xad,0x66,0xe8,0xc2,0x35,0xd1,0x16,0x31,0xe2,0xd5,0x61,0x15,0xfc,0xec,0x3b,0x48,0xb6,0xfa,0x08,0x30,0xf2,0xfc,0xec,0x65,0xe3,0xc9,0xf9,0xf0,0x7d,0xcf,0xea};
    sm2_fp_from_bytes(augend, augend88);
    sm2_fp_from_bytes(addend, addend88);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum88, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend89[32] = {0x44,0x58,0xba,0x52,0x59,0x82,0xc0,0xcb,0xd8,0xf3,0x77,0x23,0x92,0x7a,0xfa,0x87,0xbb,0xc1,0xa5,0x6e,0xee,0xbd,0xff,0xd6,0x08,0xcb,0xe6,0x9f,0x6c,0x23,0x26,0x8b};
    static std::uint8_t addend89[32] = {0x5a,0x83,0x8c,0x51,0x79,0xd0,0x9d,0x81,0xba,0x8c,0x35,0x3b,0xae,0x07,0xf6,0x05,0x48,0x56,0xc6,0x35,0xa3,0xe3,0xf7,0x3b,0x55,0xca,0xa1,0x4b,0xaa,0x2f,0xf0,0x0d};
    static std::uint8_t sum89[32]    = {0x9e,0xdc,0x46,0xa3,0xd3,0x53,0x5e,0x4d,0x93,0x7f,0xac,0x5f,0x40,0x82,0xf0,0x8d,0x04,0x18,0x6b,0xa4,0x92,0xa1,0xf7,0x11,0x5e,0x96,0x87,0xeb,0x16,0x53,0x16,0x98};
    sm2_fp_from_bytes(augend, augend89);
    sm2_fp_from_bytes(addend, addend89);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum89, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend90[32] = {0x44,0xf0,0x3b,0x10,0x4f,0x27,0xce,0x46,0xca,0x41,0x3b,0x4e,0xf6,0x53,0xc8,0xd5,0x4b,0xad,0xe7,0x1a,0x17,0x10,0x0c,0xd4,0x13,0xbe,0xad,0x35,0x50,0x72,0x46,0x34};
    static std::uint8_t addend90[32] = {0xb9,0x89,0xcb,0x78,0x52,0x6d,0x1c,0x8f,0x72,0xfc,0xb4,0xac,0x4b,0x2c,0x27,0x16,0xfd,0x83,0x62,0x90,0xd5,0xc7,0xe5,0x88,0xd5,0x81,0x27,0x4f,0xae,0x84,0xb5,0xed};
    static std::uint8_t sum90[32]    = {0xfe,0x7a,0x06,0x88,0xa1,0x94,0xea,0xd6,0x3d,0x3d,0xef,0xfb,0x41,0x7f,0xef,0xec,0x49,0x31,0x49,0xaa,0xec,0xd7,0xf2,0x5c,0xe9,0x3f,0xd4,0x84,0xfe,0xf6,0xfc,0x21};
    sm2_fp_from_bytes(augend, augend90);
    sm2_fp_from_bytes(addend, addend90);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum90, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend91[32] = {0x4d,0xc6,0x9e,0xce,0xe2,0xf3,0xd1,0xfc,0x32,0x74,0x0f,0x12,0x25,0x85,0x02,0x30,0xd0,0x47,0xab,0x57,0x9f,0xea,0x4c,0x77,0x2c,0x84,0x6a,0x03,0xd4,0xa7,0xe3,0x3f};
    static std::uint8_t addend91[32] = {0x81,0x42,0xd6,0xbd,0xcd,0xb7,0x04,0x34,0x5c,0x85,0xf8,0x51,0xb3,0x19,0x34,0x17,0x26,0x97,0xf3,0x1a,0xe8,0x47,0xe4,0xc7,0x6d,0x78,0x17,0x93,0x6a,0xeb,0x89,0x8b};
    static std::uint8_t sum91[32]    = {0xcf,0x09,0x75,0x8c,0xb0,0xaa,0xd6,0x30,0x8e,0xfa,0x07,0x63,0xd8,0x9e,0x36,0x47,0xf6,0xdf,0x9e,0x72,0x88,0x32,0x31,0x3e,0x99,0xfc,0x81,0x97,0x3f,0x93,0x6c,0xca};
    sm2_fp_from_bytes(augend, augend91);
    sm2_fp_from_bytes(addend, addend91);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum91, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend92[32] = {0x9b,0x32,0x74,0x43,0x22,0xd3,0x0c,0xd7,0xd7,0xb1,0x38,0xd9,0xc7,0x21,0x9d,0xf2,0x3a,0xfc,0x56,0xda,0xd3,0x49,0xb3,0xb3,0x5d,0xdd,0xc5,0x59,0x8b,0x5a,0x76,0xc8};
    static std::uint8_t addend92[32] = {0x35,0x70,0x1d,0xfb,0x34,0xd5,0xc3,0xd4,0x0a,0xc0,0x41,0x9f,0x40,0xc8,0x4a,0x32,0x3e,0xe8,0x0c,0x50,0xe0,0xe9,0x03,0x60,0xee,0x2e,0x09,0xdc,0xc6,0xf2,0x1c,0x67};
    static std::uint8_t sum92[32]    = {0xd0,0xa2,0x92,0x3e,0x57,0xa8,0xd0,0xab,0xe2,0x71,0x7a,0x79,0x07,0xe9,0xe8,0x24,0x79,0xe4,0x63,0x2b,0xb4,0x32,0xb7,0x14,0x4c,0x0b,0xcf,0x36,0x52,0x4c,0x93,0x2f};
    sm2_fp_from_bytes(augend, augend92);
    sm2_fp_from_bytes(addend, addend92);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum92, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend93[32] = {0xfc,0x63,0x63,0x3d,0x58,0xc0,0x9e,0xfb,0x50,0x6a,0x49,0x83,0x09,0x8b,0xc1,0x44,0xb2,0xb2,0xe1,0x4d,0x2f,0x24,0x77,0xe3,0x89,0x71,0x4f,0x27,0x30,0x2d,0x22,0x55};
    static std::uint8_t addend93[32] = {0x20,0x81,0x49,0x31,0x73,0xe7,0x20,0xe3,0x53,0xca,0xc2,0xfa,0x84,0x83,0xb2,0xcb,0x30,0x17,0x41,0xf2,0xd6,0x61,0x66,0x1d,0x38,0x9a,0xd9,0x21,0x0e,0xd2,0xcd,0xb2};
    static std::uint8_t sum93[32]    = {0x1c,0xe4,0xac,0x6f,0xcc,0xa7,0xbf,0xde,0xa4,0x35,0x0c,0x7d,0x8e,0x0f,0x74,0x0f,0xe2,0xca,0x23,0x41,0x05,0x85,0xdd,0xff,0xc2,0x0c,0x28,0x48,0x3e,0xff,0xf0,0x08};
    sm2_fp_from_bytes(augend, augend93);
    sm2_fp_from_bytes(addend, addend93);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum93, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend94[32] = {0x79,0x58,0x71,0x4b,0x6d,0x3b,0xb9,0x85,0x6e,0x1e,0x8e,0xf8,0xfe,0xd8,0x1c,0x53,0xb5,0xe0,0xa8,0x67,0x81,0xa6,0x02,0xad,0xdf,0xda,0x21,0x2d,0x34,0x4e,0xfa,0xba};
    static std::uint8_t addend94[32] = {0x85,0xd8,0x9b,0xb2,0x14,0x54,0x4a,0x00,0x10,0x0e,0x13,0xbe,0x7c,0xb0,0x64,0x53,0x0e,0xd5,0x42,0xaf,0xb6,0xdf,0x95,0xc8,0x7d,0x8e,0x7c,0xfe,0xa9,0x7c,0xaa,0x38};
    static std::uint8_t sum94[32]    = {0xff,0x31,0x0c,0xfd,0x81,0x90,0x03,0x85,0x7e,0x2c,0xa2,0xb7,0x7b,0x88,0x80,0xa6,0xc4,0xb5,0xeb,0x17,0x38,0x85,0x98,0x76,0x5d,0x68,0x9e,0x2b,0xdd,0xcb,0xa4,0xf2};
    sm2_fp_from_bytes(augend, augend94);
    sm2_fp_from_bytes(addend, addend94);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum94, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend95[32] = {0xa4,0x22,0x93,0x2b,0x75,0x6b,0xcb,0xb3,0x40,0x16,0x70,0x98,0x74,0xd6,0xad,0x84,0x8d,0xb8,0x0d,0x16,0x35,0x9a,0x3f,0x64,0x16,0x4e,0x43,0xc0,0xf8,0xde,0x40,0xb1};
    static std::uint8_t addend95[32] = {0xb8,0x75,0x60,0x6f,0xe2,0x44,0xb7,0xb1,0xba,0x98,0xf6,0x4a,0x19,0x1e,0xbf,0x7a,0x04,0xb3,0x4e,0x01,0x43,0x42,0xee,0x25,0x76,0xa1,0xa4,0x15,0xd7,0x91,0x4e,0xe8};
    static std::uint8_t sum95[32]    = {0x5c,0x97,0xf3,0x9c,0x57,0xb0,0x83,0x64,0xfa,0xaf,0x66,0xe2,0x8d,0xf5,0x6c,0xfe,0x92,0x6b,0x5b,0x18,0x78,0xdd,0x2d,0x88,0x8c,0xef,0xe7,0xd6,0xd0,0x6f,0x8f,0x9a};
    sm2_fp_from_bytes(augend, augend95);
    sm2_fp_from_bytes(addend, addend95);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum95, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend96[32] = {0xf5,0x24,0x18,0xff,0x97,0x70,0x74,0x29,0xf7,0x5f,0x4b,0x9a,0x4f,0x85,0x8f,0xd9,0xfa,0x36,0x4e,0xb4,0x12,0x9a,0x42,0x5f,0x6c,0x19,0xc9,0x0c,0x70,0x52,0x95,0x1c};
    static std::uint8_t addend96[32] = {0xcb,0x2d,0x83,0x15,0x8f,0x02,0x06,0x0f,0x6f,0x60,0xfb,0xc1,0x95,0x83,0xb8,0x33,0x07,0x28,0x48,0xc0,0x7c,0xf5,0xeb,0x8b,0x82,0xbe,0x4d,0x49,0xf0,0x20,0x45,0xdb};
    static std::uint8_t sum96[32]    = {0xc0,0x51,0x9c,0x16,0x26,0x72,0x7a,0x39,0x66,0xc0,0x47,0x5b,0xe5,0x09,0x48,0x0d,0x01,0x5e,0x97,0x75,0x8f,0x90,0x2d,0xe9,0xee,0xd8,0x16,0x56,0x60,0x72,0xda,0xf8};
    sm2_fp_from_bytes(augend, augend96);
    sm2_fp_from_bytes(addend, addend96);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum96, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend97[32] = {0x50,0xe5,0xe8,0x35,0xa4,0x43,0xf7,0x24,0x2a,0xd7,0x4e,0x7e,0x68,0xe2,0xa3,0x71,0x8c,0xdb,0xb6,0x54,0x3d,0x84,0xb0,0xdc,0x98,0xf7,0x2f,0x23,0xa3,0xac,0xf6,0xdf};
    static std::uint8_t addend97[32] = {0x1d,0xe6,0xe0,0x1a,0x48,0xae,0x52,0xdf,0xc5,0x4b,0xdc,0xea,0x55,0x9b,0x76,0x49,0xd8,0xb8,0xbd,0x2d,0x9b,0x24,0x92,0x10,0x83,0x8c,0x05,0x5d,0xca,0x0c,0x15,0x7c};
    static std::uint8_t sum97[32]    = {0x6e,0xcc,0xc8,0x4f,0xec,0xf2,0x4a,0x03,0xf0,0x23,0x2b,0x68,0xbe,0x7e,0x19,0xbb,0x65,0x94,0x73,0x81,0xd8,0xa9,0x42,0xed,0x1c,0x83,0x34,0x81,0x6d,0xb9,0x0c,0x5b};
    sm2_fp_from_bytes(augend, augend97);
    sm2_fp_from_bytes(addend, addend97);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum97, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend98[32] = {0x7f,0x1b,0x9e,0xee,0x91,0xae,0x76,0xb6,0xb0,0xae,0x78,0xf6,0x2c,0xcb,0x97,0x3e,0xe5,0x62,0x14,0x9c,0x90,0x6e,0x7a,0x87,0x93,0xd9,0x8c,0x9a,0x66,0x6f,0x98,0x00};
    static std::uint8_t addend98[32] = {0xb3,0xac,0x80,0x8e,0x7d,0x1f,0xeb,0x99,0xb4,0x1f,0x81,0xf4,0x6a,0x87,0x2f,0xc0,0xa6,0x23,0x8e,0x1c,0x75,0x6b,0xa1,0xd8,0x83,0xc1,0xa7,0x28,0x64,0x67,0xe4,0x26};
    static std::uint8_t sum98[32]    = {0x32,0xc8,0x1f,0x7e,0x0e,0xce,0x62,0x50,0x64,0xcd,0xfa,0xea,0x97,0x52,0xc6,0xff,0x8b,0x85,0xa2,0xba,0x05,0xda,0x1c,0x5f,0x17,0x9b,0x33,0xc2,0xca,0xd7,0x7c,0x27};
    sm2_fp_from_bytes(augend, augend98);
    sm2_fp_from_bytes(addend, addend98);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum98, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }

    static std::uint8_t augend99[32] = {0xdf,0x06,0xc6,0x33,0xa1,0xf2,0x39,0x53,0xc7,0x23,0xfb,0xf8,0xbc,0xe4,0x46,0xc2,0x5f,0x03,0x24,0x3b,0x83,0x26,0x9c,0xf5,0x6f,0x00,0xb5,0x34,0xc7,0x0d,0x83,0x04};
    static std::uint8_t addend99[32] = {0xaf,0xc7,0xcf,0xb5,0x2f,0xce,0xfe,0x0f,0x4f,0xf7,0x92,0x3c,0x38,0x55,0x6c,0x41,0x21,0x2c,0x38,0x87,0xdd,0x77,0x41,0x37,0x07,0x9e,0x81,0x6b,0x02,0xf1,0x20,0x7f};
    static std::uint8_t sum99[32]    = {0x8e,0xce,0x95,0xe9,0xd1,0xc1,0x37,0x63,0x17,0x1b,0x8e,0x34,0xf5,0x39,0xb3,0x03,0x80,0x2f,0x5c,0xc4,0x60,0x9d,0xde,0x2b,0x76,0x9f,0x36,0x9f,0xc9,0xfe,0xa3,0x84};
    sm2_fp_from_bytes(augend, augend99);
    sm2_fp_from_bytes(addend, addend99);
    sm2_fp_add(sum, augend, addend);
    sm2_fp_to_bytes(sum_data, sum);
    if (std::memcmp(sum99, sum_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_add");
    }
}